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

Method Create

python/mod_cvcuda/include/nvcv/python/TensorBatch.hpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37{
38public:
39 static TensorBatch Create(int capacity)
40 {
41 PyObject *tensorBatch = capi().TensorBatch_Create(capacity);
42 CheckCAPIError();
43 NVCV_ASSERT(tensorBatch != nullptr);
44 py::object pytensorBatch = py::reinterpret_steal<py::object>(tensorBatch);
45
46 return TensorBatch(pytensorBatch);
47 }
48
49 void pushBack(Tensor tensor)
50 {

Callers

nothing calls this directly

Calls 2

CheckCAPIErrorFunction · 0.85
TensorBatchClass · 0.70

Tested by

no test coverage detected