MCPcopy Create free account
hub / github.com/OpenDriveLab/OccNet / __setstate__

Method __setstate__

projects/mmdet3d_plugin/models/opt/adamw.py:54–57  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

52 super(AdamW2, self).__init__(params, defaults)
53
54 def __setstate__(self, state):
55 super(AdamW2, self).__setstate__(state)
56 for group in self.param_groups:
57 group.setdefault('amsgrad', False)
58
59 @torch.no_grad()
60 def step(self, closure=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected