Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducibility issue with CuDNN backend #32

Open
songyouwei opened this issue May 19, 2019 · 2 comments
Open

Reproducibility issue with CuDNN backend #32

songyouwei opened this issue May 19, 2019 · 2 comments
Assignees

Comments

@songyouwei
Copy link

songyouwei commented May 19, 2019

def set_environment(seed, set_cuda=False):

When running on the CuDNN backend, there might be reproducibility issue.
According to pytorch document, two further options must be set:

torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
@namisan namisan self-assigned this May 19, 2019
@namisan
Copy link
Owner

namisan commented May 19, 2019

Thanks pointing it out!!
Does this work on pytorch version 0.4x?
We will test it soon.

@songyouwei
Copy link
Author

I haven't tested it on pytorch version 0.4x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants