@@ -1213,7 +1213,7 @@ def bitwise_or(x, y, out=None, name=None):
12131213 Tensor(shape=[3], dtype=int64, place=Place(cpu), stop_gradient=True,
12141214 [-1, -1, -3])
12151215 """
1216- if in_dynamic_mode () and out is None :
1216+ if in_dynamic_or_pir_mode () and out is None :
12171217 return _C_ops .bitwise_or (x , y )
12181218
12191219 return _bitwise_op (
@@ -1272,7 +1272,7 @@ def bitwise_xor(x, y, out=None, name=None):
12721272 Tensor(shape=[3], dtype=int64, place=Place(cpu), stop_gradient=True,
12731273 [-1, -3, -4])
12741274 """
1275- if in_dynamic_mode () and out is None :
1275+ if in_dynamic_or_pir_mode () and out is None :
12761276 return _C_ops .bitwise_xor (x , y )
12771277 return _bitwise_op (
12781278 op_name = "bitwise_xor" , x = x , y = y , name = name , out = out , binary_op = True
@@ -1328,7 +1328,7 @@ def bitwise_not(x, out=None, name=None):
13281328 Tensor(shape=[3], dtype=int64, place=Place(cpu), stop_gradient=True,
13291329 [ 4, 0, -2])
13301330 """
1331- if in_dynamic_mode () and out is None :
1331+ if in_dynamic_or_pir_mode () and out is None :
13321332 return _C_ops .bitwise_not (x )
13331333
13341334 return _bitwise_op (
0 commit comments