Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
96
inline 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
102
template <typename T>
Callers
nothing calls this directly
Calls
2
max
Function · 0.85
roundUp
Function · 0.70
Tested by
no test coverage detected