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

Function roundUp

samples/common/safeCommon.h:103–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101// Return m rounded up to nearest multiple of n
102template <typename T>
103inline T roundUp(T m, T n)
104{
105 return ((m + n - 1) / n) * n;
106}
107
108//! comps is the number of components in a vector. Ignored if vecDim < 0.
109inline int64_t volume(nvinfer1::Dims dims, int32_t vecDim, int32_t comps, int32_t batch)

Callers 2

volumeFunction · 0.70
reallocateOutputMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected