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

Method __setstate__

optimizers/sgd.py:256–259  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

254 super(SGDVec, self).__init__(params, defaults)
255
256 def __setstate__(self, state):
257 super(SGDVec, self).__setstate__(state)
258 for group in self.param_groups:
259 group.setdefault('nesterov', False)
260
261 def step(self, layers_index_todo, lr_vector, closure=None):
262 """Performs a single optimization step.

Callers

nothing calls this directly

Calls 1

__setstate__Method · 0.45

Tested by

no test coverage detected