MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / _set_seed

Function _set_seed

tests/conftest.py:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def _set_seed():
10 torch.manual_seed(0)
11 torch.cuda.manual_seed_all(0)
12 torch.mps.manual_seed(0)
13 np.random.seed(0)
14 random.seed(0)
15
16
17def pytest_runtest_call(item):

Callers 1

pytest_runtest_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected