MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __setstate__

Method __setstate__

PATH/core/fp16/opt.py:212–214  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

210 "state_dict().")
211
212 def __setstate__(self, state):
213 raise RuntimeError("FP16_Optimizer should be deserialized using "
214 "load_state_dict().")
215
216 def zero_grad(self, set_grads_to_None=False):
217 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected