MCPcopy
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
76def set_seed(seed):
77 random.seed(seed)
78 np.random.seed(seed)
79 torch.manual_seed(seed)
80
81
82def get_non_persistent_buffers_set(

Callers 4

launchFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls 2

seedMethod · 0.45
manual_seedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…