File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
onnxscript/function_libs/torch_lib/ops Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments