未验证 提交 40b68630 编写于 作者: F fuyou765 提交者: GitHub

[MLU] fix expand_v2 scatter tile where ctest bugs (#44220)

上级 5061d3db
......@@ -25,6 +25,8 @@ from paddle.fluid import compiler, Program, program_guard
import paddle
from paddle.fluid.framework import _test_eager_guard
paddle.enable_static()
# Situation 1: shape is a list(without tensor)
class TestExpandV2OpRank1(OpTest):
......@@ -304,5 +306,4 @@ class TestExpandV2DygraphAPI(unittest.TestCase):
if __name__ == "__main__":
paddle.enable_static()
unittest.main()
......@@ -25,6 +25,8 @@ from op_test import OpTest
import paddle.fluid.core as core
from paddle.fluid.dygraph.base import switch_to_static_graph
paddle.enable_static()
class TestScatterOp(OpTest):
......@@ -243,5 +245,4 @@ class TestScatterInplaceAPI(TestScatterAPI):
if __name__ == "__main__":
paddle.enable_static()
unittest.main()
......@@ -24,6 +24,8 @@ import paddle
import paddle.fluid as fluid
from paddle.fluid import compiler, Program, program_guard
paddle.enable_static()
#Situation 1: repeat_times is a list (without tensor)
class TestTileOpRank1(OpTest):
......@@ -277,5 +279,4 @@ class TestTileAPI(unittest.TestCase):
if __name__ == "__main__":
paddle.enable_static()
unittest.main()
......@@ -29,6 +29,8 @@ from paddle.fluid.op import Operator
from paddle.fluid.backward import append_backward
from paddle.fluid.framework import _test_eager_guard
paddle.enable_static()
class TestWhereOp(OpTest):
......@@ -396,5 +398,4 @@ class TestWhereOpError(unittest.TestCase):
if __name__ == "__main__":
paddle.enable_static()
unittest.main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册