MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / set_seed

Function set_seed

functions.py:57–61  ·  view source on GitHub ↗
(seed, flag)

Source from the content-addressed store, hash-verified

55
56
57def set_seed(seed, flag):
58 if flag == True:
59 torch.manual_seed(seed)
60 torch.cuda.manual_seed(seed)
61 torch.cuda.manual_seed_all(seed)
62
63
64def metrics(test_pre, test_real):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected