MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / getMemorySize

Function getMemorySize

quickstart/common/util.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30{
31
32size_t getMemorySize(const nvinfer1::Dims& dims, const int32_t elem_size)
33{
34 return std::accumulate(dims.d, dims.d + dims.nbDims, 1, std::multiplies<int64_t>()) * elem_size;
35}
36
37ImageBase::ImageBase(const std::string& filename, const nvinfer1::Dims& dims)
38 : mDims(dims)

Callers 1

inferMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected