Skip to content

Commit

Permalink
[BYOC][TRT] Fix small bug preventing TRT runtime compilation for vers…
Browse files Browse the repository at this point in the history
…ions < 6 (#7372)

* Fix small bug preventing TRT runtime compilation for versions < 6

* Trigger ci
  • Loading branch information
Trevor Morris authored Feb 11, 2021
1 parent d05d75d commit 6b58321
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 6b58321

Please sign in to comment.