Skip to content

Commit

Permalink
Fix small bug preventing TRT runtime compilation for versions < 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Morris committed Jan 29, 2021
1 parent 3734d5f commit 71e7fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/contrib/tensorrt/tensorrt_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ class BatchNormOpConverter : public TensorRTOpConverter {
nvinfer1::IScaleLayer* scale_layer = params->network->addScaleNd(
*input, nvinfer1::ScaleMode::kCHANNEL, weight_shift, weight_scale, power, channel_dim);
#else
ICHECK_EQ(input->getDimensions().nbDims(), 3);
ICHECK_EQ(input->getDimensions().nbDims, 3);
nvinfer1::IScaleLayer* scale_layer = params->network->addScale(
*input, nvinfer1::ScaleMode::kCHANNEL, weight_shift, weight_scale, power);
#endif
Expand Down

0 comments on commit 71e7fa3

Please sign in to comment.