-
I'm trying to pass a subset of a tracer to a function using .at[].
The code works just fine without the jit decorator.
How should I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
jakevdp
Feb 7, 2024
Replies: 1 comment
-
Perhaps what you want is |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andreok
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
x.at[case1]
does not return a subset of an array, it returns a helper that lets you generate a scatter operation (see thejnp.ndarray.at
docs).Perhaps what you want is
func(x[case1])
?