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 5ebbfaa commit 2d98111Copy full SHA for 2d98111
python/paddle/fluid/io.py
@@ -66,7 +66,8 @@ def is_persistable(var):
66
res = fluid.io.is_persistable(param)
67
"""
68
if var.desc.type() == core.VarDesc.VarType.FEED_MINIBATCH or \
69
- var.desc.type() == core.VarDesc.VarType.FETCH_LIST:
+ var.desc.type() == core.VarDesc.VarType.FETCH_LIST or \
70
+ var.desc.type() == core.VarDesc.VarType.READER:
71
return False
72
return var.persistable
73
0 commit comments