From 55e11e21cbf39fe5fdc0792562a0b7085b12cdc0 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Tue, 6 Mar 2018 19:34:49 +0800 Subject: [PATCH] fix_a_bug --- python/paddle/fluid/backward.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/backward.py b/python/paddle/fluid/backward.py index e02245d05dd..09d137c9017 100644 --- a/python/paddle/fluid/backward.py +++ b/python/paddle/fluid/backward.py @@ -486,7 +486,7 @@ def append_backward(loss, parameter_list=None, no_grad_set=None, params_and_grads = [] for param in parameters: if param not in grad_info_map: - raise ValueError("param %s is not in map" % param) + continue grad_info = grad_info_map[param] grad_block = grad_info[1] if not grad_block.has_var(grad_info[0]): -- GitLab