diff --git a/python/paddle/fluid/io.py b/python/paddle/fluid/io.py index cf43998228a06d73f4d7d6dfc85dcd002078ba0f..e1d26474e63c8da174bebe3b639f356c2ef655b4 100644 --- a/python/paddle/fluid/io.py +++ b/python/paddle/fluid/io.py @@ -66,7 +66,8 @@ def is_persistable(var): res = fluid.io.is_persistable(param) """ if var.desc.type() == core.VarDesc.VarType.FEED_MINIBATCH or \ - var.desc.type() == core.VarDesc.VarType.FETCH_LIST: + var.desc.type() == core.VarDesc.VarType.FETCH_LIST or \ + var.desc.type() == core.VarDesc.VarType.READER: return False return var.persistable