From 62a8cd92d799e6a94bfe21350195e827900f42a9 Mon Sep 17 00:00:00 2001 From: 0x45f Date: Sun, 19 Dec 2021 09:06:29 +0000 Subject: [PATCH] remove wrong code --- python/paddle/fluid/dygraph/io.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/paddle/fluid/dygraph/io.py b/python/paddle/fluid/dygraph/io.py index 4b5e60bb94502..9ffdea969be5d 100644 --- a/python/paddle/fluid/dygraph/io.py +++ b/python/paddle/fluid/dygraph/io.py @@ -1077,9 +1077,6 @@ def append_var_from_block_desc_static(block, else: lod_level = None - if var_desc.persistable(): - block = block.program.global_block() - if var_desc.persistable(): current_block = block.program.global_block() else: