未验证 提交 c40074aa 编写于 作者: C chengduo 提交者: GitHub

fix l1 regularizer (#13881)

test=develop
上级 305034f5
...@@ -237,6 +237,7 @@ class L1DecayRegularizer(WeightDecayRegularizer): ...@@ -237,6 +237,7 @@ class L1DecayRegularizer(WeightDecayRegularizer):
'Ids': idx}, 'Ids': idx},
outputs={'Out': decay}, outputs={'Out': decay},
attrs={'is_sparse': True}) attrs={'is_sparse': True})
param = decay
# Append sign op # Append sign op
block.append_op( block.append_op(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册