Skip to content

Commit 4d4491e

Browse files
committed
Fix new added code
1 parent 77f12e0 commit 4d4491e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ def inference_optimize(self, export_for_deployment=True):
16681668
root_block._remove_op(0, read_op_idx + 1)
16691669
for var in root_block.all_vars():
16701670
if var.type() == core.VarDesc.VarType.READER:
1671-
root_block._remove_var(var.name())
1671+
root_block._remove_var(cpt.to_bytes(var.name()))
16721672

16731673
# change all `is_test` attributes to True
16741674
for i in six.moves.range(res.desc.num_blocks()):

0 commit comments

Comments
 (0)