Skip to content

Commit 7876b21

Browse files
committed
update
1 parent c15c6c1 commit 7876b21

File tree

1 file changed

+2
-5
lines changed
  • python/paddle/fluid/layers

1 file changed

+2
-5
lines changed

python/paddle/fluid/layers/io.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,8 @@ def reset():
259259
return reader
260260

261261

262-
def _copy_reader_var_(block, var, new_name=None):
263-
if new_name == None:
264-
new_name = var.name
265-
new_var = block.create_var(
266-
name=str(new_name), type=core.VarDesc.VarType.READER)
262+
def _copy_reader_var_(block, var):
263+
new_var = block.create_var(name=var.name, type=core.VarDesc.VarType.READER)
267264
new_var.desc.set_shapes(var.desc.shapes())
268265
new_var.desc.set_dtypes(var.desc.dtypes())
269266
new_var.persistable = True

0 commit comments

Comments
 (0)