Replies: 1 comment
-
Hey @dhyani15, the correct way to do this would be to expose a static argument in the |
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
-
I want to evaluate either function 1 or function 2 but not both, one is cheap and the other costly. But when I jit and run this flax vit implementation I get constant time of execution even when I run mostly cheap operations vs mostly expensive operations.
Here is the snippet of code, can you tell me if I am doing something incorrectly.
The ChooseAttention class is where the selection happening between the two functions. This is a modified implementation of flax vit of hugging face.
Beta Was this translation helpful? Give feedback.
All reactions