From 0d70231ca105b3e1fd15b8966fc357b67e25245f Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 5 Mar 2018 16:31:02 +0800 Subject: [PATCH] add check --- python/paddle/fluid/executor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 506067cf83..bd2de4e978 100644 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -261,6 +261,7 @@ 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) + # TODO(qiao): Should check program_cache and program are exactly the same. if program_cache is None: program_cache = program.clone() -- GitLab