From fd37536ee61c5f37bb856c36dde4430640d2b6c9 Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Mon, 17 Feb 2020 12:05:29 +0800 Subject: [PATCH] [cherry-pick] optimizer var exlcude fluid.data var. test=develop (#22618) * optimizer var exlcude fluid.data var. test=develop * fix compute priority. test=develop --- 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 448eb49563a..622d2153fd5 100644 --- a/python/paddle/fluid/io.py +++ b/python/paddle/fluid/io.py @@ -112,7 +112,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