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

Method shape

python/mod_cvcuda/nvcv/ExternalBuffer.cpp:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89Shape 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
100py::tuple ExternalBuffer::strides() const
101{

Callers 1

cudaArrayInterfaceMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected