(data, ndarray_data)
| 9 | import memory_graph.config as config |
| 10 | |
| 11 | def ndarray_to_node(data, ndarray_data): |
| 12 | dim = len(ndarray_data.shape) |
| 13 | if dim > 2: |
| 14 | return Node_Linear(data, [i for i in ndarray_data]) |
| 15 | elif dim == 2: |
| 16 | return Node_Table(data, ndarray_data) |
| 17 | else: |
| 18 | return Node_Linear(data, ndarray_data) |
| 19 | |
| 20 | def get_numpy_immutables(): |
| 21 | import numpy as np |
no test coverage detected