From c40074aa9489ba60277d9fbd9c1a12f104b450cb Mon Sep 17 00:00:00 2001 From: chengduo Date: Thu, 18 Oct 2018 22:01:51 +0800 Subject: [PATCH] fix l1 regularizer (#13881) test=develop --- python/paddle/fluid/regularizer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/regularizer.py b/python/paddle/fluid/regularizer.py index a4336e955..97644df00 100644 --- a/python/paddle/fluid/regularizer.py +++ b/python/paddle/fluid/regularizer.py @@ -237,6 +237,7 @@ class L1DecayRegularizer(WeightDecayRegularizer): 'Ids': idx}, outputs={'Out': decay}, attrs={'is_sparse': True}) + param = decay # Append sign op block.append_op( -- GitLab