3 ms·
Somewhat related: is there autograd in python that uses AST analysis or something similar? The only method I’m familiar with uses tracer objects which have thei
by brap 2y ago
Somewhat related: is there autograd in python that uses AST analysis or something similar? The only method I’m familiar with uses tracer objects which have their gotchas. I’d like to compile a python function (at runtime) while writing its code as naturally as possible
- szvsw 2y agoTaichi (Python package) definitely uses AST for at least the JIT’ing/kernel generation, not sure about how the autograd works under the hood but these links will get you started. There are plenty of publications about taichi which you can look up as well for more detail I am sure. https://docs.taichi-lang.org/docs/differentiable_programming https://docs.taichi-lang.org/docs/differentiable_programming https://docs.taichi-lang.org/docs/compilation https://docs.taichi-lang.org/docs/compilation