MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __setstate__

Method __setstate__

PATH/core/optim.py:67–70  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

65 super(SGD, self).__init__(params, defaults)
66
67 def __setstate__(self, state):
68 super(SGD, self).__setstate__(state)
69 for group in self.param_groups:
70 group.setdefault('nesterov', False)
71
72 def step(self, closure=None):
73 """Performs a single optimization step.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected