Replies: 1 comment 1 reply
-
Inside Outside |
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.
-
Hi, in #30869 I got some helpful advice understanding
jax.device_put
. I have similar questions aboutjax.lax.with_sharding_constraint
. Outside jitted regions, what does this function do, if anything? Is there a notion of hints to the compiler, will it act just asjax.device_put
, or is it not totally clear what happens?Testing this function, I observe that the following fails:
However, this block of code passes!
I do not understand this behavior, but of course I realize that
with_sharding_constraint
is documented to only be used inside jitted regions.Beta Was this translation helpful? Give feedback.
All reactions