From c84fc6d4cff4465563edd9a99de2fb93a4e829b6 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 5 Mar 2018 16:26:55 +0800 Subject: [PATCH] fix bug --- python/paddle/fluid/executor.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index ad6bc16b4..506067cf8 100644 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -261,10 +261,6 @@ class Executor(object): fetch_var_names = [var.desc.name() for var in fetch_list] program_cache_key = str(feed_var_names + fetch_var_names) program_cache = self.program_caches.get(program_cache_key, None) - if program_cache is not None: - # TODO: should make sure program and program_cache are exactly the same. - if program.desc != program_cache.desc: - program_cache = None if program_cache is None: program_cache = program.clone() -- GitLab