Skip to content

Commit 1e417b9

Browse files
authored
Merge pull request #12286 from reyoung/feature/skip_reader_when_save
Skip reader when save
2 parents 02cf54d + 2d98111 commit 1e417b9

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)