Skip to content

Commit 856f650

Browse files
committed
fix bug
1 parent 6edbf13 commit 856f650

File tree

1 file changed

+2
-1
lines changed
  • python/paddle/v2/fluid

1 file changed

+2
-1
lines changed

python/paddle/v2/fluid/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ def prepend_feed_ops(inference_program, feeded_var_names):
198198
name='feed', type=core.VarDesc.VarType.FEED_MINIBATCH, persistable=True)
199199

200200
for i, name in enumerate(feeded_var_names):
201+
out = global_block.var(name)
201202
global_block.prepend_op(
202203
type='feed',
203204
inputs={'X': [feed_var]},
204-
outputs={'Out': [name]},
205+
outputs={'Out': [out]},
205206
attrs={'col': i})
206207

207208

0 commit comments

Comments
 (0)