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

Function volume

samples/common/safeCommon.h:96–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96inline int64_t volume(nvinfer1::Dims const& d)
97{
98 return std::accumulate(d.d, d.d + d.nbDims, int64_t{1}, std::multiplies<int64_t>{});
99}
100
101// Return m rounded up to nearest multiple of n
102template <typename T>

Callers

nothing calls this directly

Calls 2

maxFunction · 0.85
roundUpFunction · 0.70

Tested by

no test coverage detected