Skip to content

Commit 55e11e2

Browse files
committed
fix_a_bug
1 parent 86263b2 commit 55e11e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/backward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def append_backward(loss, parameter_list=None, no_grad_set=None,
486486
params_and_grads = []
487487
for param in parameters:
488488
if param not in grad_info_map:
489-
raise ValueError("param %s is not in map" % param)
489+
continue
490490
grad_info = grad_info_map[param]
491491
grad_block = grad_info[1]
492492
if not grad_block.has_var(grad_info[0]):

0 commit comments

Comments
 (0)