how does this work? does it actually compile/embed there python interpreter or does it make calls to the system interpreter somehow?
Re:Swift for Tensorflow 0.3.1
by wool_gather on Saturday May 11, 2019 @12:06PM
(#19886809)
From the linked document:
> To accomplish this, the Swift script/program simply links the Python interpreter into its code.
I would imagine that having the interpreter in another process would be a gigantice performance hit.
yea i realized it's the obvious thing: load the dll.
As a stopgap while all the data science tooling is being built out for Swift you can use anything from the Python ecosystem (including np and pd) by using the Python interop:
let np = Python.import(“numpy”)
https://github.com/tensorflow/swift/blob/master/docs/PythonI...