Replies: 1 comment 5 replies
-
Your code is missing the definition of |
Beta Was this translation helpful? Give feedback.
5 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
The function I am trying to vectorize contains an index as positional argument. Therefore, when I use vmap, I pass a np.array of shape (n, 1) as the list of indexes.
I found out that there should be index error in
and also bool error in
But I cannot convert sample_id into int. On the other hand, if I add
@partial(jit, static_argnums=(1,))
before the compute_X_transform function, i.e., keep sample_id static, it throws the unhashable error. Is there a way I can make it to work? I would be greatly appreciative!
Beta Was this translation helpful? Give feedback.
All reactions