Usage and Implementation of InTracing and RetainGraph in MLX (transform_impl.h) #1965
-
I’m exploring the internal implementation of graph transformations and autograd mechanics in the MLX framework, specifically focusing on the Lines 22 to 74 in 2770a10 I guess these are tracers used to print compute graphs. So,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you want to visualize a compute graph use The |
Beta Was this translation helpful? Give feedback.
-
Thank you ! @awni |
Beta Was this translation helpful? Give feedback.
If you want to visualize a compute graph use
export_to_dot
. There are other function sin that file which can help print the graph.The
InTracing
struct doesn't have to do with printing graphs. That is more so an operation / eval know if they are being called during a transformation.