Hacker News new | ask | show | jobs
by tel 2525 days ago
Bridging into NumPy isn’t going to be useful unless it covers some AD system too (XLA?).
2 comments

XLA is a compiler for array code. It doesn't come with AD -- you need a wrapper like TF or JAX (or Swift, I guess) for that.
I was imagining the FFI emitting XLA code needed to implement the TF/JAX routines behind the scenes, but it's wild speculation.
Correct: you can call Python from Swift OR you can use AD but not both at the same time.