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

Method doComputeSizeInBytes

python/mod_cvcuda/nvcv/Tensor.cpp:237–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237int64_t Tensor::doComputeSizeInBytes(const nvcv::Tensor::Requirements &reqs)
238{
239 int64_t size_inbytes;
240 util::CheckThrow(nvcvMemRequirementsCalcTotalSizeBytes(&(reqs.mem.cudaMem), &size_inbytes));
241 return size_inbytes;
242}
243
244int64_t Tensor::GetSizeInBytes() const
245{

Callers

nothing calls this directly

Calls 1

CheckThrowFunction · 0.50

Tested by

no test coverage detected