| 87 | } |
| 88 | |
| 89 | Shape ExternalBuffer::shape() const |
| 90 | { |
| 91 | Shape shape(m_dlTensor->ndim); |
| 92 | for (size_t i = 0; i < shape.size(); ++i) |
| 93 | { |
| 94 | shape[i] = m_dlTensor->shape[i]; |
| 95 | } |
| 96 | |
| 97 | return shape; |
| 98 | } |
| 99 | |
| 100 | py::tuple ExternalBuffer::strides() const |
| 101 | { |
no test coverage detected