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

Method __setstate__

PATH/core/optimizers/lars.py:44–47  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

42 super(LARS, self).__init__(params, defaults)
43
44 def __setstate__(self, state):
45 super(LARS, self).__setstate__(state)
46 for group in self.param_groups:
47 group.setdefault('nesterov', False)
48
49 @torch.no_grad()
50 def step(self, closure=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected