MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / __setstate__

Method __setstate__

bitsandbytes/optim/lars.py:200–203  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

198 super().__init__(params, defaults)
199
200 def __setstate__(self, state):
201 super().__setstate__(state)
202 for group in self.param_groups:
203 group.setdefault("nesterov", False)
204
205 @torch.no_grad()
206 def step(self, closure=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected