How to vmap over this function? #12218
Unanswered
bigyankarki
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Can you update your question with the complete code needed to run your function, including example inputs? In particular, |
Beta Was this translation helpful? Give feedback.
3 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.
-
I have this function which works for single vector:
Sample input:
Output
However, I want it to work for a batch of vectors.
What I have tried so far:
This doesn't work. However, if I understand correctly vmap should be able to handle this transformation for batches?
Beta Was this translation helpful? Give feedback.
All reactions