Skip to content

Commit

Permalink
add bool type to convert_binary_elementwise
Browse files Browse the repository at this point in the history
  • Loading branch information
zewenli98 committed Nov 16, 2023
1 parent af49b8b commit 1645b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/torch_tensorrt/dynamo/conversion/impl/elementwise/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def convert_binary_elementwise(
source_ir: Optional[SourceIR],
name: str,
op_type: trt.ElementWiseOperation,
lhs_val: Union[int, float, TRTTensor, torch.Tensor],
rhs_val: Union[int, float, TRTTensor, torch.Tensor],
lhs_val: Union[int, float, bool, TRTTensor, torch.Tensor],
rhs_val: Union[int, float, bool, TRTTensor, torch.Tensor],
) -> TRTTensor:
"""
This function adds a TensorRT elementwise layer. We allow both operands to be
Expand Down

0 comments on commit 1645b5e

Please sign in to comment.