MCPcopy
hub / github.com/InternLM/InternLM / get_current_mode

Function get_current_mode

internlm/core/context/random.py:95–100  ·  view source on GitHub ↗

Returns the current mode of the seed manager. Returns: :class:`torch.ByteTensor`: The current mode of the seed manager.

()

Source from the content-addressed store, hash-verified

93
94
95def get_current_mode():
96 """Returns the current mode of the seed manager.
97 Returns:
98 :class:`torch.ByteTensor`: The current mode of the seed manager.
99 """
100 return _SEED_MANAGER.current_mode
101
102
103def add_seed(parallel_mode: ParallelMode, seed: int, overwrite: bool = False):

Callers 4

forwardMethod · 0.90
backwardMethod · 0.90
sync_statesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected