Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created January 27, 2020 13:02
Show Gist options
  • Save aravindpai/6509e0012b5fbf0c1b9c63224290a4fb to your computer and use it in GitHub Desktop.
Save aravindpai/6509e0012b5fbf0c1b9c63224290a4fb to your computer and use it in GitHub Desktop.
#Reproducing same results
SEED = 2019
#Torch
torch.manual_seed(SEED)
#Cuda algorithms
torch.backends.cudnn.deterministic = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment