From 398b96c6b887298e1e721b4e62d52480b37d6f63 Mon Sep 17 00:00:00 2001 From: SmirnovKol <31559413+SmirnovKol@users.noreply.github.com> Date: Mon, 6 Jun 2022 18:31:52 +0800 Subject: [PATCH] Update optimizer.py (#43201) --- python/paddle/optimizer/optimizer.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/paddle/optimizer/optimizer.py b/python/paddle/optimizer/optimizer.py index e3e7257f75..ec367c7c71 100644 --- a/python/paddle/optimizer/optimizer.py +++ b/python/paddle/optimizer/optimizer.py @@ -338,9 +338,6 @@ class Optimizer(object): adam.set_state_dict(opti_state_dict) ''' - if isinstance(self._learning_rate, LRScheduler): - self._learning_rate.set_dict(state_dict["LR_Scheduler"]) - if isinstance(self._learning_rate, LRScheduler): self._learning_rate.set_state_dict(state_dict["LR_Scheduler"]) -- GitLab