MCPcopy Create free account
hub / github.com/cfiltnlp/MUStARD_Plus_Plus / seed

Function seed

MPP_Code/training/execute_classification_implicit.py:54–61  ·  view source on GitHub ↗

This method is used for seeding the code and different points

()

Source from the content-addressed store, hash-verified

52abl = "6" #To perform ablation in audio
53
54def seed():
55 """ This method is used for seeding the code and different points"""
56 np.random.seed(seed_dyn)
57 random.seed(seed_dyn)
58 torch.manual_seed(seed_dyn)
59 torch.cuda.manual_seed(seed_dyn)
60 torch.backends.cudnn.enabled = False
61 torch.backends.cudnn.deterministic = True
62
63
64def seed_worker(worker_id):

Callers 3

evaluationFunction · 0.70
trainingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected