MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / __setstate__

Method __setstate__

ldm/util.py:113–116  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

111 super().__init__(params, defaults)
112
113 def __setstate__(self, state):
114 super().__setstate__(state)
115 for group in self.param_groups:
116 group.setdefault('amsgrad', False)
117
118 @torch.no_grad()
119 def step(self, closure=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected