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

Method getOutputDimensions

plugin/nmsPlugin/nmsPlugin.cpp:144–156  ·  view source on GitHub ↗

Returns output dimensions at given index

Source from the content-addressed store, hash-verified

142
143// Returns output dimensions at given index
144Dims DetectionOutput::getOutputDimensions(int32_t index, Dims const* inputs, int32_t nbInputDims) noexcept
145{
146 PLUGIN_ASSERT(nbInputDims == 3);
147 PLUGIN_ASSERT(index == 0 || index == 1);
148 // Output dimensions
149 // index 0 : Dimensions 1x param.keepTopK x 7
150 // index 1: Dimensions 1x1x1
151 if (index == 0)
152 {
153 return Dims3(1, param.keepTopK, 7);
154 }
155 return Dims3(1, 1, 1);
156}
157
158DimsExprs DetectionOutputDynamic::getOutputDimensions(
159 int32_t outputIndex, DimsExprs const* inputs, int32_t nbInputs, IExprBuilder& exprBuilder) noexcept

Callers

nothing calls this directly

Calls 6

Dims3Class · 0.85
isConstantMethod · 0.80
getConstantValueMethod · 0.80
operationMethod · 0.80
constantMethod · 0.80
getNbOutputsMethod · 0.45

Tested by

no test coverage detected