Jax's internal notion of a function #13135
-
I was wondering if the following quote taken from AOT could be elaborated upon. -- Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think what that is meant to convey is that in JAX, functions aren't self-contained data structures that can be inspected directly. Rather, functions are represented by arbitrary Python bytecode that must be traced (via |
Beta Was this translation helpful? Give feedback.
I think what that is meant to convey is that in JAX, functions aren't self-contained data structures that can be inspected directly. Rather, functions are represented by arbitrary Python bytecode that must be traced (via
jax.make_jaxpr
or similar) in order to ascertain their effect on any given inputs. I believe @froystig was the author there - he might weigh-in as well.