From 57de4842e677b8aee61cd889f2142c66834ba437 Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Sat, 15 Feb 2020 19:07:45 +0800 Subject: [PATCH] optimizer var exlcude fluid.data var. test=develop (#22594) --- python/paddle/fluid/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/io.py b/python/paddle/fluid/io.py index 0f7c12272f8..d8d650026be 100644 --- a/python/paddle/fluid/io.py +++ b/python/paddle/fluid/io.py @@ -111,7 +111,7 @@ def is_persistable(var): def is_belong_to_optimizer(var): - if not isinstance(var, Parameter): + if not isinstance(var, Parameter) or var.desc.need_check_feed(): return is_persistable(var) return False -- GitLab