Integrating Custom Kernels with MLX's Lazy Compute Mechanism #1977
Unanswered
Zijie-Tian
asked this question in
Q&A
Replies: 2 comments
-
You have two options:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you! @awni . However, after reading the implementations of
|
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.
-
I’m developing a custom kernel in MLX framework and need it to integrate seamlessly with MLX’s lazy evaluation system. MLX’s built-in operators work with lazy computation (e.g., deferred execution until eval()), but my custom kernel requires explicit input evaluation (x.eval()) to function correctly, which seems inconsistent with native operators.
So, How do native operators avoid explicit eval() on inputs?
Beta Was this translation helpful? Give feedback.
All reactions