2727class TestBitwiseAnd (OpTest ):
2828 def setUp (self ):
2929 self .op_type = "bitwise_and"
30- self .python_api = paddle .tensor . logic . bitwise_and
30+ self .python_api = paddle .bitwise_and
3131 self .init_dtype ()
3232 self .init_shape ()
3333 self .init_bound ()
@@ -120,7 +120,7 @@ def init_shape(self):
120120class TestBitwiseAndBool (TestBitwiseAnd ):
121121 def setUp (self ):
122122 self .op_type = "bitwise_and"
123- self .python_api = paddle .tensor . logic . bitwise_and
123+ self .python_api = paddle .bitwise_and
124124
125125 self .init_shape ()
126126
@@ -252,8 +252,8 @@ class TestElementwiseBitwiseAndOp_Stride(OpTest):
252252
253253 def setUp (self ):
254254 self .op_type = "bitwise_and"
255- self .python_api = paddle .tensor . logic . bitwise_and
256- self .public_python_api = paddle .tensor . logic . bitwise_and
255+ self .python_api = paddle .bitwise_and
256+ self .public_python_api = paddle .bitwise_and
257257 self .transpose_api = paddle .transpose
258258 self .as_stride_api = paddle .as_strided
259259 self .init_dtype ()
@@ -404,7 +404,7 @@ def init_data(self):
404404class TestBitwiseOr (OpTest ):
405405 def setUp (self ):
406406 self .op_type = "bitwise_or"
407- self .python_api = paddle .tensor . logic . bitwise_or
407+ self .python_api = paddle .bitwise_or
408408 self .init_dtype ()
409409 self .init_shape ()
410410 self .init_bound ()
@@ -497,7 +497,7 @@ def init_shape(self):
497497class TestBitwiseOrBool (TestBitwiseOr ):
498498 def setUp (self ):
499499 self .op_type = "bitwise_or"
500- self .python_api = paddle .tensor . logic . bitwise_or
500+ self .python_api = paddle .bitwise_or
501501
502502 self .init_shape ()
503503
@@ -518,8 +518,8 @@ class TestElementwiseBitwiseOrOp_Stride(OpTest):
518518
519519 def setUp (self ):
520520 self .op_type = "bitwise_or"
521- self .python_api = paddle .tensor . logic . bitwise_or
522- self .public_python_api = paddle .tensor . logic . bitwise_or
521+ self .python_api = paddle .bitwise_or
522+ self .public_python_api = paddle .bitwise_or
523523 self .transpose_api = paddle .transpose
524524 self .as_stride_api = paddle .as_strided
525525 self .init_dtype ()
@@ -670,7 +670,7 @@ def init_data(self):
670670class TestBitwiseXor (OpTest ):
671671 def setUp (self ):
672672 self .op_type = "bitwise_xor"
673- self .python_api = paddle .tensor . logic . bitwise_xor
673+ self .python_api = paddle .bitwise_xor
674674
675675 self .init_dtype ()
676676 self .init_shape ()
@@ -764,7 +764,7 @@ def init_shape(self):
764764class TestBitwiseXorBool (TestBitwiseXor ):
765765 def setUp (self ):
766766 self .op_type = "bitwise_xor"
767- self .python_api = paddle .tensor . logic . bitwise_xor
767+ self .python_api = paddle .bitwise_xor
768768
769769 self .init_shape ()
770770
@@ -785,8 +785,8 @@ class TestElementwiseBitwiseXorOp_Stride(OpTest):
785785
786786 def setUp (self ):
787787 self .op_type = "bitwise_xor"
788- self .python_api = paddle .tensor . logic . bitwise_xor
789- self .public_python_api = paddle .tensor . logic . bitwise_xor
788+ self .python_api = paddle .bitwise_xor
789+ self .public_python_api = paddle .bitwise_xor
790790 self .transpose_api = paddle .transpose
791791 self .as_stride_api = paddle .as_strided
792792 self .init_dtype ()
@@ -937,7 +937,7 @@ def init_data(self):
937937class TestBitwiseNot (OpTest ):
938938 def setUp (self ):
939939 self .op_type = "bitwise_not"
940- self .python_api = paddle .tensor . logic . bitwise_not
940+ self .python_api = paddle .bitwise_not
941941
942942 self .init_dtype ()
943943 self .init_shape ()
@@ -1016,7 +1016,7 @@ def init_shape(self):
10161016class TestBitwiseNotBool (TestBitwiseNot ):
10171017 def setUp (self ):
10181018 self .op_type = "bitwise_not"
1019- self .python_api = paddle .tensor . logic . bitwise_not
1019+ self .python_api = paddle .bitwise_not
10201020 self .init_shape ()
10211021
10221022 x = np .random .choice ([True , False ], self .x_shape )
0 commit comments