MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / CreateForImageBatch

Method CreateForImageBatch

python/mod_cvcuda/include/nvcv/python/Tensor.hpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 static Tensor CreateForImageBatch(int numImages, nvcv::Size2D size, nvcv::ImageFormat fmt, int rowalign = 0)
61 {
62 PyObject *otensor
63 = capi().Tensor_CreateForImageBatch(numImages, size.w, size.h, static_cast<NVCVImageFormat>(fmt), rowalign);
64 CheckCAPIError();
65 NVCV_ASSERT(otensor != nullptr);
66 py::object pytensor = py::reinterpret_steal<py::object>(otensor);
67
68 return Tensor(pytensor);
69 }
70
71private:
72 friend struct py::detail::type_caster<Tensor>;

Callers

nothing calls this directly

Calls 2

CheckCAPIErrorFunction · 0.85
TensorClass · 0.70

Tested by

no test coverage detected