Skip to content

Commit c40074a

Browse files
author
chengduo
authored
fix l1 regularizer (#13881)
test=develop
1 parent 305034f commit c40074a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/paddle/fluid/regularizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def __call__(self, param, grad, block):
237237
'Ids': idx},
238238
outputs={'Out': decay},
239239
attrs={'is_sparse': True})
240+
param = decay
240241

241242
# Append sign op
242243
block.append_op(

0 commit comments

Comments
 (0)