| 130 | |
| 131 | template <int ndim> |
| 132 | py::list as_py_list(const TensorShape<ndim> &shape) { |
| 133 | py::list ret(shape.size()); |
| 134 | for (int i = 0; i < shape.size(); i++) { |
| 135 | ret[i] = shape[i]; |
| 136 | } |
| 137 | return ret; |
| 138 | } |
| 139 | |
| 140 | template <typename Backend> |
| 141 | py::list py_shape(const Tensor<Backend> &t) { |
no test coverage detected