Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hpcaitech/ColossalAI
/ set_seed
Function
set_seed
colossalai/utils/common.py:76–79 ·
view source on GitHub ↗
(seed)
Source
from the content-addressed store, hash-verified
74
75
76
def
set_seed(seed):
77
random.seed(seed)
78
np.random.seed(seed)
79
torch.manual_seed(seed)
80
81
82
def
get_non_persistent_buffers_set(
Callers
4
launch
Function · 0.90
main
Function · 0.90
main
Function · 0.90
main
Function · 0.90
Calls
2
seed
Method · 0.45
manual_seed
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…