From 0e192063b8931e7993351bc0832efc5229e399d5 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Thu, 15 Oct 2020 10:15:55 +0800 Subject: [PATCH] update lr for paddle 2.0 (#1564) --- ppdet/optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/optimizer.py b/ppdet/optimizer.py index 87c605f68..82be7535a 100644 --- a/ppdet/optimizer.py +++ b/ppdet/optimizer.py @@ -61,7 +61,7 @@ class PiecewiseDecay(object): for i in self.gamma: value.append(base_lr * i) - return optimizer.lr_scheduler.PiecewiseLR(boundary, value) + return optimizer.lr.PiecewiseDecay(boundary, value) @serializable -- GitLab