Skip to content

Commit 56c823c

Browse files
committed
Fix
Signed-off-by: Justin Chu <[email protected]>
1 parent 597aded commit 56c823c

File tree

1 file changed

+4
-4
lines changed
  • onnxscript/function_libs/torch_lib/ops

1 file changed

+4
-4
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,9 +1231,9 @@ def aten_bitwise_and(self: TTensor, other: TTensor) -> TTensor:
12311231
dtype = self.dtype if self.dtype is not None else other.dtype
12321232
assert dtype is not None
12331233

1234-
if self.dtype.is_integer():
1234+
if dtype.is_integer():
12351235
return op.BitwiseAnd(self, other)
1236-
if self.dtype == ir.DataType.BOOL:
1236+
if dtype == ir.DataType.BOOL:
12371237
return op.And(self, other)
12381238
raise NotImplementedError(f"Not implemented for types {self.dtype} and {other.dtype}")
12391239

@@ -1427,9 +1427,9 @@ def aten_bitwise_xor(self: TTensor, other: TTensor) -> TTensor:
14271427
dtype = self.dtype if self.dtype is not None else other.dtype
14281428
assert dtype is not None
14291429

1430-
if self.dtype.is_integer():
1430+
if dtype.is_integer():
14311431
return op.BitwiseXor(self, other)
1432-
if self.dtype == ir.DataType.BOOL:
1432+
if dtype == ir.DataType.BOOL:
14331433
return op.Xor(self, other)
14341434
raise NotImplementedError(f"Not implemented for types {self.dtype} and {other.dtype}")
14351435

0 commit comments

Comments
 (0)