MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / __setstate__

Method __setstate__

optimizers/Adam.py:121–124  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

119 super(Adam, self).__init__(params, defaults)
120
121 def __setstate__(self, state):
122 super(Adam, self).__setstate__(state)
123 for group in self.param_groups:
124 group.setdefault('amsgrad', False)
125
126 @torch.no_grad()
127 def step(self, closure=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected