From bfcc7cd75d7b947b66353ebe4fb02db556c834ca Mon Sep 17 00:00:00 2001 From: pangyoki Date: Tue, 30 Mar 2021 13:58:28 +0000 Subject: [PATCH] delete dygraph in unittest --- .../paddle/fluid/tests/unittests/npu/test_save_load_npu.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/npu/test_save_load_npu.py b/python/paddle/fluid/tests/unittests/npu/test_save_load_npu.py index be93dba9c03bd..7b6bd72f65c5f 100644 --- a/python/paddle/fluid/tests/unittests/npu/test_save_load_npu.py +++ b/python/paddle/fluid/tests/unittests/npu/test_save_load_npu.py @@ -1314,12 +1314,6 @@ def symlink_force(target, link_name): fluid.set_program_state(main_program, program_state) self.check_in_static(main_program, base_map) - # make sure `load_program_state` can be used in dynamic graph mode - with fluid.dygraph.guard(place): - load_state = fluid.load_program_state("test_program_1") - for k, v in load_state.items(): - self.assertTrue(np.array_equal(base_map[k], v)) - def check_in_static(self, main_program, base_map): for var in main_program.list_vars(): if isinstance(var, framework.Parameter) or var.persistable: