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

Method _get_state

PATH/core/fp16/opt.py:568–569  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

566 # Promote state so it can be retrieved or set via
567 # "fp16_optimizer_instance.state"
568 def _get_state(self):
569 return self.optimizer.state
570
571 def _set_state(self, value):
572 self.optimizer.state = value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected