by pc2g4d · 3y ago · 0 comments
Tangentially: I keep thinking an ML framework could be done based on Rust macros, so the automatic differentiation is done entirely at compile time. `let grad = autodiff!(x + y);` (The `autodiff` crate does this at runtime IIUC). Then the compiler's optimizations can apply to the static computation graph.
I always thought that was the vision for TF in the early days, but clearly it moved in a more dynamic direction under PyTorch's influence.