5 ms·
They built in Python interop so that you can use numpy in TFSwift
by akhilcacharya 7y ago
They built in Python interop so that you can use numpy in TFSwift
- jefft255 7y agoDoesn’t that introduce serious overhead compared to first class native arrays as in Julia or FORTRAN?
- superlopuh 7y agoMy impression is that this is to bootstrap adoption, there is a Swift-native TensorFlow package being developed also.
- jjoonathan 7y agoBridges always have trolls under them. If you don't see the troll, that doesn't mean it isn't there, it's just waiting for you to cross.
- tel 7y agoBridging 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.