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

Update the FAQ on reproducibility: PYTHONHASHSEED=0 before startup + TF on GPU issues #10871

Merged
merged 1 commit into from
Aug 9, 2018

Conversation

ageron
Copy link
Contributor

@ageron ageron commented Aug 8, 2018

Summary

Python reads the PYTHONHASHSEED environment variable upon startup, so it's no use setting it from within the program.
It's also worth mentioning reproducibility issues when using the TensorFlow backend on a GPU. I just recommend running on the CPU if you need perfect reproducibility.

PR Overview

  • [n] This PR requires new unit tests [y/n] (make sure tests are included)
  • [n] This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
  • [y] This PR is backwards compatible [y/n]
  • [n] This PR changes the current API [y/n] (all API changes need to be approved by fchollet)

Copy link
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@fchollet fchollet merged commit 812c9fa into keras-team:master Aug 9, 2018
@ageron ageron deleted the fix_pythonhashseed_doc branch August 9, 2018 21:04
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

Successfully merging this pull request may close these issues.

2 participants