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

JointDistributions yield different PRNG behaviour on GPU and CPU #1820

Open
chrism0dwk opened this issue Jul 4, 2024 · 0 comments
Open

JointDistributions yield different PRNG behaviour on GPU and CPU #1820

chrism0dwk opened this issue Jul 4, 2024 · 0 comments

Comments

@chrism0dwk
Copy link
Contributor

chrism0dwk commented Jul 4, 2024

Hi All,

I noticed recently that stateless PRNG behaviour for JointDistribution* objects appear to do different things depending on whether random numbers are generated on GPU or CPU. This is demonstrated this Colab.

This appears to go against the assertions in the tf.random.stateless_* documentation that suggests that PRNG behaviour should be consistent across CPU and GPU devices. I guess that there may be reordering of operations within the JointDistribution* logic, but perhaps this should be documented?

Regards,

Chris

[edit] interestingly, this seems relevant only to Eager and Graph mode. XLA mode appears consistent.

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

1 participant