Replies: 1 comment
-
I generally wouldn't expect JIT-compiled |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi,
Based on my previous question #15134 (comment), I added a question related to it but there is no answer so far. I, thus, create the new question specifically for the additional question.
I have the follwing code that do some operations on a tree-like structure, a binary tree:
This time used for performing the functuion
update_priorities2
along with its vmapped transformed versions are following:I, thus, replaced the for loop inside the function with the lax.scan and get the operation times as:
As you can see, there is no distinctive difference of using
lax.scan
compared to the original for-loop based function. What might be the reason and how should I fix it?Beta Was this translation helpful? Give feedback.
All reactions