MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / _get_state

Method _get_state

codegeex/megatron/optimizer/optimizer.py:125–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 # Promote state so it can be retrieved or set via
124 # "optimizer_instance.state"
125 def _get_state(self):
126 return self.optimizer.state
127
128 def _set_state(self, value):
129 self.optimizer.state = value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected