Skip to content
Snippets Groups Projects
Commit d6d3faca authored by Bobholamovic's avatar Bobholamovic
Browse files

Add cuda manual seed

parent e80eae38
No related branches found
No related tags found
1 merge request!2Update outdated code
......@@ -142,6 +142,7 @@ def main():
random.seed(RNG_SEED)
np.random.seed(RNG_SEED)
torch.manual_seed(RNG_SEED)
torch.cuda.manual_seed(RNG_SEED)
cudnn.deterministic = True
cudnn.benchmark = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment