Skip to content

Commit 2d98111

Browse files
committed
Skip reader when save
1 parent 5ebbfaa commit 2d98111

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/paddle/fluid/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def is_persistable(var):
6666
res = fluid.io.is_persistable(param)
6767
"""
6868
if var.desc.type() == core.VarDesc.VarType.FEED_MINIBATCH or \
69-
var.desc.type() == core.VarDesc.VarType.FETCH_LIST:
69+
var.desc.type() == core.VarDesc.VarType.FETCH_LIST or \
70+
var.desc.type() == core.VarDesc.VarType.READER:
7071
return False
7172
return var.persistable
7273

0 commit comments

Comments
 (0)