From 1769d2128aef34f80fce10e64366e6c1a7acce94 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Tue, 1 Sep 2020 13:13:07 +0800 Subject: [PATCH] fix ut (#26844) --- .../paddle/fluid/tests/unittests/test_imperative_save_load_v2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/tests/unittests/test_imperative_save_load_v2.py b/python/paddle/fluid/tests/unittests/test_imperative_save_load_v2.py index e81d1c8610..3ccd1dbda3 100644 --- a/python/paddle/fluid/tests/unittests/test_imperative_save_load_v2.py +++ b/python/paddle/fluid/tests/unittests/test_imperative_save_load_v2.py @@ -297,6 +297,7 @@ class TestDygraphPtbRnn(unittest.TestCase): paddle.save(self.state_dict, "./test_dy_v2") def testLoadAndSetVarBase(self): + self.setUp() seed = 90 hidden_size = 10 vocab_size = 1000 -- GitLab