From 4d4491ef6a3c45c688b904941a85f9951b130c3d Mon Sep 17 00:00:00 2001 From: minqiyang Date: Wed, 15 Aug 2018 12:15:10 +0800 Subject: [PATCH] Fix new added code --- python/paddle/fluid/framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index d413f96e95d..621e46b0f9e 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -1668,7 +1668,7 @@ class Program(object): root_block._remove_op(0, read_op_idx + 1) for var in root_block.all_vars(): if var.type() == core.VarDesc.VarType.READER: - root_block._remove_var(var.name()) + root_block._remove_var(cpt.to_bytes(var.name())) # change all `is_test` attributes to True for i in six.moves.range(res.desc.num_blocks()): -- GitLab