Skip to content

Commit

Permalink
Fix bug check trt (apache#10600)
Browse files Browse the repository at this point in the history
Co-authored-by: Michalis Papapdimitriou <mpapapdimitriou@octoml.ai>
  • Loading branch information
2 people authored and pfk-beta committed Apr 11, 2022
1 parent ee516a8 commit 71b95ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tvm/relay/op/contrib/tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def is_supported_trt_dtype(args):
ret: bool
True if supported, False if not.
"""
if any([x.checked_type.dtype in supported_types for x in args]):
if not all([x.checked_type.dtype in supported_types for x in args]):
logger.info("Only float32 and float16 inputs are supported for TensorRT BYOC.")
return True
return False
return False
return True


def is_tensorrt_runtime_enabled():
Expand Down

0 comments on commit 71b95ba

Please sign in to comment.