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

Method reset

codegeex/megatron/mpu/random.py:154–157  ·  view source on GitHub ↗

Set to the initial state (no tracker).

(self)

Source from the content-addressed store, hash-verified

152 self.seeds_ = set()
153
154 def reset(self):
155 """Set to the initial state (no tracker)."""
156 self.states_ = {}
157 self.seeds_ = set()
158
159 def get_states(self):
160 """Get rng states. Copy the dictionary so we have direct

Calls

no outgoing calls

Tested by

no test coverage detected