MCPcopy Create free account
hub / github.com/boyiwei/alignment-attribution-code / set_seed

Function set_seed

lib/data.py:10–12  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

8
9# Set seed for reproducibility
10def set_seed(seed):
11 np.random.seed(seed)
12 torch.random.manual_seed(seed)
13
14
15# Wrapper for tokenized input IDs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected