LRU Cache and JAX
#29949
Replies: 1 comment
-
Your code fails because JAX’s JIT does employ an LRU cache, but not over the function arguments themselves. Rather the cache is over the static properties of array arguments (e.g. I jope that’s clear! |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
To my knowledge, Jax's JIT compilation of a function is stored using
lru
's cache.(#8458)
I understand that subsequent calls to a JITTed function would then do a look up in this cache and run that version instead of the original. But if we run it with the same inputs, the computation is not cached right?
But putting a
lru_cache
decorator failsBeta Was this translation helpful? Give feedback.
All reactions