Skip to content
Discussion options

You must be logged in to vote

If I understand your question correctly, I think you'll find that the two approaches will be effectively equivalent. A vmap of a while_loop essentially creates a while_loop that doesn't terminate until all mapped loops terminate. So whether you do that automatically via vmap of while_loop or manually via while_loop of vmap you'll probably see broadly the same performance.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by femtomc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants