4 ms·
Bridging into NumPy isn’t going to be useful unless it covers some AD system too (XLA?).
by tel 7y ago
Bridging into NumPy isn’t going to be useful unless it covers some AD system too (XLA?).
- StefanKarpinski 7y agoCorrect: you can call Python from Swift OR you can use AD but not both at the same time.
- shoyer 7y agoXLA 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.
- tel 7y agoI was imagining the FFI emitting XLA code needed to implement the TF/JAX routines behind the scenes, but it's wild speculation.