diff options
Diffstat (limited to 'torch/optim')
-rw-r--r-- | torch/optim/lr_scheduler.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/torch/optim/lr_scheduler.py b/torch/optim/lr_scheduler.py index f1bef0d84b..b40a075809 100644 --- a/torch/optim/lr_scheduler.py +++ b/torch/optim/lr_scheduler.py @@ -22,12 +22,6 @@ class _LRScheduler(object): self.step(last_epoch + 1) self.last_epoch = last_epoch - def __getstate__(self): - return self.state_dict() - - def __setstate__(self, state): - self.load_state_dict(state) - def state_dict(self): """Returns the state of the scheduler as a :class:`dict`. |