Skip to content

Commit a210762

Browse files
committed
add bool type to convert_binary_elementwise
1 parent 1b077ca commit a210762

File tree

1 file changed

+2
-2
lines changed
  • py/torch_tensorrt/dynamo/conversion/impl/elementwise

1 file changed

+2
-2
lines changed

py/torch_tensorrt/dynamo/conversion/impl/elementwise/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def convert_binary_elementwise(
5858
source_ir: Optional[SourceIR],
5959
name: str,
6060
op_type: trt.ElementWiseOperation,
61-
lhs_val: Union[int, float, TRTTensor, torch.Tensor],
62-
rhs_val: Union[int, float, TRTTensor, torch.Tensor],
61+
lhs_val: Union[int, float, bool, TRTTensor, torch.Tensor],
62+
rhs_val: Union[int, float, bool, TRTTensor, torch.Tensor],
6363
) -> TRTTensor:
6464
"""
6565
This function adds a TensorRT elementwise layer. We allow both operands to be

0 commit comments

Comments
 (0)