From f5db451d3b87f6138598240db2d5c9894b6d6cf8 Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Mon, 17 Feb 2020 12:05:17 +0800 Subject: [PATCH] fix compute priority. test=develop (#22619) --- 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 792d0f7bf5..dd312bce11 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) or var.desc.need_check_feed(): + if not (isinstance(var, Parameter) or var.desc.need_check_feed()): return is_persistable(var) return False -- GitLab