| 40 | { |
| 41 | public: |
| 42 | static Array Create(int64_t length, nvcv::DataType dtype) |
| 43 | { |
| 44 | PyObject *oarray = capi().Array_Create(length, dtype); |
| 45 | CheckCAPIError(); |
| 46 | NVCV_ASSERT(oarray == nullptr); |
| 47 | py::object pyarray = py::reinterpret_steal<py::object>(oarray); |
| 48 | return Array(pyarray); |
| 49 | } |
| 50 | |
| 51 | static Array Create(const Shape &shape, nvcv::DataType dtype) |
| 52 | { |
nothing calls this directly
no test coverage detected