| Total Complexity | 2 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| 1 | #!/usr/bin/env python |
||
| 7 | class NeuralTensor(): |
||
| 8 | """ |
||
| 9 | A class for exporting Theano tensor operations to neural variables. |
||
| 10 | """ |
||
| 11 | |||
| 12 | def __getattr__(self, func_name): |
||
| 13 | @neural_computation |
||
| 14 | def wrapper(*args, **kwargs): |
||
| 15 | return getattr(tensor, func_name)(*args, **kwargs) |
||
| 16 | return wrapper |
||
| 17 | |||
| 20 | NT = neural_tensor |