From 0d94ab1306365ef2da8d6a8551061052e5419847 Mon Sep 17 00:00:00 2001 From: Qingsheng Li Date: Tue, 22 May 2018 14:27:04 +0800 Subject: [PATCH] Fixed var not found bug (#10808) --- python/paddle/fluid/layers/control_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/control_flow.py b/python/paddle/fluid/layers/control_flow.py index dee41448081..d1ea9f14856 100644 --- a/python/paddle/fluid/layers/control_flow.py +++ b/python/paddle/fluid/layers/control_flow.py @@ -1098,7 +1098,7 @@ class ConditionalBlock(object): input_set = set([ipt.name for ipt in self.inputs]) param_list = [ - parent_block.var(each_name) for each_name in params + parent_block.var_recursive(each_name) for each_name in params if each_name not in input_set ] -- GitLab