https://github.com/sueszli/autograd.c/blob/main/src/autograd...
i wonder whether there is a more clever way to do this without sacrificing simplicity.
43 karma · joined July 18, 2022
https://github.com/sueszli/autograd.c/blob/main/src/autograd...
i wonder whether there is a more clever way to do this without sacrificing simplicity.
i think you might be interested in MLIR/IREE: https://github.com/openxla/iree
if you are interested in the technical details, the design specs are here: https://github.com/sueszli/autograd.c/blob/main/docs/design....
if you are working on similar mlsys or compiler-style projects and think there could be overlap, please reach out: https://sueszli.github.io/
It sparked joy and some great discussions. I turned the idea into a tiny, compiler-agnostic header-only shim that provides defer-like semantics in C as a short-term workaround until the language (hopefully?) adds a defer statement - Yay! :)