From cc71c7b9ec58e4eeb9d6da95f73cdda264081685 Mon Sep 17 00:00:00 2001 From: LiuChiaChi <709153940@qq.com> Date: Sun, 27 Sep 2020 07:33:44 +0000 Subject: [PATCH] fix test_model.py bug, correct initialization of MyModel --- python/paddle/tests/test_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/tests/test_model.py b/python/paddle/tests/test_model.py index 69a888de9c6..c5a0e820fe7 100644 --- a/python/paddle/tests/test_model.py +++ b/python/paddle/tests/test_model.py @@ -616,7 +616,7 @@ class TestRaiseError(unittest.TestCase): def test_export_deploy_model_without_inputs_and_run_in_dygraph(self): paddle.disable_static() - net = MyModel(classifier_activation=None) + net = MyModel() save_dir = tempfile.mkdtemp() if not os.path.exists(save_dir): os.makedirs(save_dir) -- GitLab