| 54 | } |
| 55 | |
| 56 | Dims Reorg::getOutputDimensions(int32_t index, Dims const* inputs, int32_t nbInputDims) noexcept |
| 57 | { |
| 58 | PLUGIN_ASSERT(nbInputDims == 1); |
| 59 | PLUGIN_ASSERT(index == 0); |
| 60 | return Dims3(inputs[0].d[0] * stride * stride, inputs[0].d[1] / stride, inputs[0].d[2] / stride); |
| 61 | } |
| 62 | |
| 63 | int32_t Reorg::enqueue( |
| 64 | int32_t batchSize, void const* const* inputs, void* const* outputs, void* workspace, cudaStream_t stream) noexcept |