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

Method load_state_dict

k_diffusion/utils.py:137–143  ·  view source on GitHub ↗

Loads the class's state. Args: state_dict (dict): scaler state. Should be an object returned from a call to :meth:`state_dict`.

(self, state_dict)

Source from the content-addressed store, hash-verified

135 return dict(self.__dict__.items())
136
137 def load_state_dict(self, state_dict):
138 """Loads the class's state.
139 Args:
140 state_dict (dict): scaler state. Should be an object returned
141 from a call to :meth:`state_dict`.
142 """
143 self.__dict__.update(state_dict)
144
145 def get_value(self):
146 """Gets the current EMA decay rate."""

Callers 4

mainFunction · 0.95
mainFunction · 0.45
__init__Method · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected