未验证 提交 934cbcd8 编写于 作者: 0 0x45f 提交者: GitHub

Switch some dy2st UT to eager mode (#41255)

上级 aab17899
...@@ -220,4 +220,5 @@ class TestBert(unittest.TestCase): ...@@ -220,4 +220,5 @@ class TestBert(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() with fluid.framework._test_eager_guard():
unittest.main()
...@@ -773,4 +773,5 @@ class TestTrain(unittest.TestCase): ...@@ -773,4 +773,5 @@ class TestTrain(unittest.TestCase):
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() with fluid.framework._test_eager_guard():
unittest.main()
...@@ -628,4 +628,5 @@ class TestMobileNet(unittest.TestCase): ...@@ -628,4 +628,5 @@ class TestMobileNet(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() with fluid.framework._test_eager_guard():
unittest.main()
...@@ -363,4 +363,5 @@ class TestRemoveCommentInDy2St(unittest.TestCase): ...@@ -363,4 +363,5 @@ class TestRemoveCommentInDy2St(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() with fluid.framework._test_eager_guard():
unittest.main()
...@@ -358,4 +358,5 @@ class TestSentiment(unittest.TestCase): ...@@ -358,4 +358,5 @@ class TestSentiment(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() with fluid.framework._test_eager_guard():
unittest.main()
...@@ -303,4 +303,5 @@ class TestWord2Vec(unittest.TestCase): ...@@ -303,4 +303,5 @@ class TestWord2Vec(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() with fluid.framework._test_eager_guard():
unittest.main()
...@@ -1454,4 +1454,5 @@ class TestInputSpecCompatibility(unittest.TestCase): ...@@ -1454,4 +1454,5 @@ class TestInputSpecCompatibility(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() with fluid.framework._test_eager_guard():
unittest.main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册