Why do we need the Trace
class besides the MainTrace
class?
#22203
Unanswered
eaplatanios
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think this might be a design choice based around higher-order primitives. In this case the e.g. JVP implementation would like to "re-dispatch" and itself call a JVP. The (I'm willing to be wrong on the above, if someone better-informed knows otherwise.) One can definitely imagine other tracing models than JAX's, where e.g. a single |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been going over the Autodidax tutorial (thank you for this amazing learning resource!) and I can’t quite tell what the need for the
Trace
class is. Couldn’t we just havepure
,lift
, andprocess_primitive
defined inMainTrace
and then just pass around references to a single shared interpreter instance? Is there a particular need to carry additional state inTrace
class instances or something like that? Thank you!Beta Was this translation helpful? Give feedback.
All reactions