Skip to content

Commit

Permalink
Switch some dy2st UT to eager (#41175)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f authored Mar 31, 2022
1 parent 74894cd commit 2003610
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,4 +631,5 @@ def test_train(self):


if __name__ == "__main__":
unittest.main()
with fluid.framework._test_eager_guard():
unittest.main()
Original file line number Diff line number Diff line change
Expand Up @@ -610,4 +610,5 @@ def predict_dygraph_jit(self, batch):


if __name__ == "__main__":
unittest.main()
with fluid.framework._test_eager_guard():
unittest.main()
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ def test_resnet(self):


if __name__ == '__main__':
unittest.main()
with fluid.framework._test_eager_guard():
unittest.main()
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ def test_resnet(self):


if __name__ == '__main__':
unittest.main()
with fluid.framework._test_eager_guard():
unittest.main()

0 comments on commit 2003610

Please sign in to comment.