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

Method GetSizeInBytes

python/mod_cvcuda/nvcv/Tensor.cpp:244–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244int64_t Tensor::GetSizeInBytes() const
245{
246 // m_size_inbytes == -1 indicates failure case and value has not been computed yet
247 NVCV_ASSERT(m_size_inbytes != -1
248 && "Tensor has m_size_inbytes == -1, ie m_size_inbytes has not been correctly set");
249 return m_size_inbytes;
250}
251
252std::shared_ptr<Tensor> Tensor::shared_from_this()
253{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected