MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / __setstate__

Method __setstate__

train_utils.py:85–88  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

83 super(SGD, self).__init__(params, defaults)
84
85 def __setstate__(self, state):
86 super(SGD, self).__setstate__(state)
87 for group in self.param_groups:
88 group.setdefault('nesterov', False)
89
90 @torch.no_grad()
91 def step(self, closure=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected