MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / state_dict

Method state_dict

k_diffusion/utils.py:133–135  ·  view source on GitHub ↗

Returns the state of the class as a :class:`dict`.

(self)

Source from the content-addressed store, hash-verified

131 self.last_epoch = last_epoch
132
133 def state_dict(self):
134 """Returns the state of the class as a :class:`dict`."""
135 return dict(self.__dict__.items())
136
137 def load_state_dict(self, state_dict):
138 """Loads the class's state.

Callers 4

mainFunction · 0.45
saveFunction · 0.45
saveMethod · 0.45
saveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected