From 787d1d36d00568672e99abbb3fb594af27607b30 Mon Sep 17 00:00:00 2001 From: xuwei06 Date: Fri, 5 Jan 2018 18:22:14 -0800 Subject: [PATCH] Fix the output of conditional_block --- python/paddle/v2/fluid/layers/control_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/fluid/layers/control_flow.py b/python/paddle/v2/fluid/layers/control_flow.py index acc22bef98b..eacaf7a8e81 100644 --- a/python/paddle/v2/fluid/layers/control_flow.py +++ b/python/paddle/v2/fluid/layers/control_flow.py @@ -897,7 +897,7 @@ class ConditionalBlock(object): out_list = [ parent_block.var(var_name) for var_name in parent_block.vars - if var_name not in intermediate + if var_name in intermediate ] step_scope = parent_block.create_var( -- GitLab