Skip to content

Commit c84fc6d

Browse files
committed
fix bug
1 parent 338f888 commit c84fc6d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

python/paddle/fluid/executor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,6 @@ def run(self,
261261
fetch_var_names = [var.desc.name() for var in fetch_list]
262262
program_cache_key = str(feed_var_names + fetch_var_names)
263263
program_cache = self.program_caches.get(program_cache_key, None)
264-
if program_cache is not None:
265-
# TODO: should make sure program and program_cache are exactly the same.
266-
if program.desc != program_cache.desc:
267-
program_cache = None
268264

269265
if program_cache is None:
270266
program_cache = program.clone()

0 commit comments

Comments
 (0)