Skip to content

Commit

Permalink
Add return false
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Morris committed Dec 3, 2020
1 parent 27982b8 commit c03ece8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tvm/relay/op/contrib/tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def batch_norm_annotate_fn(expr): # pylint: disable=unused-variable
return False
if len(args[0].checked_type.shape) == 5 and get_tensorrt_version() < (6, 0, 1):
logger.info("nn.batch_norm: TensorRT 6.0.1 or higher is required for rank 5 inputs.")
return False
if len(args[0].checked_type.shape) > 5:
logger.info("nn.batch_norm: Input rank must be 5 or less.")
return False
Expand Down

0 comments on commit c03ece8

Please sign in to comment.