You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/12/03 19:54:52 UTC

[GitHub] [tvm] anijain2305 commented on a change in pull request #7026: [BYOC][TRT] Support batch norm for all ranks <=5, and all axes

anijain2305 commented on a change in pull request #7026:
URL: https://github.com/apache/tvm/pull/7026#discussion_r535541583



##########
File path: python/tvm/relay/op/contrib/tensorrt.py
##########
@@ -341,6 +341,11 @@ def batch_norm_annotate_fn(expr):  # pylint: disable=unused-variable
     if any([x.checked_type.dtype != "float32" for x in args]):
         logger.info("Only float32 inputs are supported for TensorRT.")
         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.")

Review comment:
       MIssing `return False`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org