| 101 | // Return m rounded up to nearest multiple of n |
| 102 | template <typename T> |
| 103 | inline 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. |
| 109 | inline int64_t volume(nvinfer1::Dims dims, int32_t vecDim, int32_t comps, int32_t batch) |
no outgoing calls
no test coverage detected