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

Function volume

python/include/utils.h:57–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57inline int64_t volume(nvinfer1::Dims const& dims)
58{
59 return std::accumulate(dims.d, dims.d + dims.nbDims, int64_t{1}, std::multiplies<int64_t>{});
60}
61
62// Method for calling the python function and returning the value (returned from python) used in cpp trampoline
63// classes. Prints an error if no such method is overriden in python.

Callers 5

pyCaffe.cppFile · 0.50
context_get_shapeFunction · 0.50
readMethod · 0.50
writeMethod · 0.50
processMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected