Returns output dimensions at given index
| 142 | |
| 143 | // Returns output dimensions at given index |
| 144 | Dims 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 | |
| 158 | DimsExprs DetectionOutputDynamic::getOutputDimensions( |
| 159 | int32_t outputIndex, DimsExprs const* inputs, int32_t nbInputs, IExprBuilder& exprBuilder) noexcept |
nothing calls this directly
no test coverage detected