vmap: eval an array without a primitive #545
Answered
by
awni
LeonEricsson
asked this question in
Q&A
-
help me understand what's going wrong inside this vectorized function.
I might be mistaken but in my limited time using JAX I have not come across this issue. As I understand it |
Beta Was this translation helpful? Give feedback.
Answered by
awni
Jan 24, 2024
Replies: 1 comment 2 replies
-
You are doing a couple things strangely that are likely causing issues:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
LeonEricsson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are doing a couple things strangely that are likely causing issues:
max
instead ofmx.maximum
idx
is anmx.array
and not supported with Python style slicing (even scalar arrays won't work there). I'm not sure if we will add that, it's possible we could but for now, best to avoid it.