MCPcopy Create free account
hub / github.com/Walter0807/MotionBERT / set_random_seed

Function set_random_seed

train.py:41–44  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

39 return opts
40
41def set_random_seed(seed):
42 random.seed(seed)
43 np.random.seed(seed)
44 torch.manual_seed(seed)
45
46def save_checkpoint(chk_path, epoch, lr, optimizer, model_pos, min_loss):
47 print('Saving checkpoint to', chk_path)

Callers 1

train.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected