pmap changes the behaviour of a NumPyro sampler #11109
Unanswered
jeremiecoullon
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It can vary from backend to backend (CPU vs GPU vs TPU) but in general, JIT compilation (including pmap) can change the numerics of a function due to compiler optimizations. What backend are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I documented this behaviour in the NumPyro issue tracker. Essentially I found that in some cases,
pmap(f)(x[None])[0]
andf(x)
do not produce the same result.I was wondering if this behaviour is expected from
pmap
? And is it perhaps due to numerical precision errors?Beta Was this translation helpful? Give feedback.
All reactions