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

Method __setstate__

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

Source from the content-addressed store, hash-verified

119 super(AdamW, self).__init__(params, defaults)
120
121 def __setstate__(self, state):
122 super(AdamW, self).__setstate__(state)
123 for group in self.param_groups:
124 group.setdefault('amsgrad', False)
125
126 def get_second_moments(self):
127 return self.second_moments

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected