We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c15c6c1 commit 7876b21Copy full SHA for 7876b21
python/paddle/fluid/layers/io.py
@@ -259,11 +259,8 @@ def reset():
259
return reader
260
261
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)
+def _copy_reader_var_(block, var):
+ new_var = block.create_var(name=var.name, type=core.VarDesc.VarType.READER)
267
new_var.desc.set_shapes(var.desc.shapes())
268
new_var.desc.set_dtypes(var.desc.dtypes())
269
new_var.persistable = True
0 commit comments