Replies: 1 comment
-
Thanks for the question! I think 'raise' could work in some situations but not others. In particular it wouldn't work when code isn't being staged out by By "staging" I mean "rather than evaluating numerical values in arrays as Python code is executed (e.g. in jax.numpy function applications), instead delaying such evaluation so that it can be carried out separately from Python execution, e.g. after optimized compilation". (We should add a good definition of "staging" to the JAX Glossary.) Technically distinct from staging is how So in other words, I would expect To make things like But we have some features related to staged-out runtime errors just coming online now, like Does that make sense? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying out
jp.choose
in my code and when I wanted to jit it jax complains that I should use 'wrap' orclip
and not 'raise'. I do not understand the reasoning behind that. Can anyone elaborate? I appreciate it a lot.Beta Was this translation helpful? Give feedback.
All reactions