yorkie / tensorflow-nodejs

TensorFlow Node.js provides idiomatic JavaScript language bindings and a high layer API for Node.js users. TensorFlow Node.js provides idiomatic JavaScript language bindings and a high layer API for Node.js users.
https://npmjs.org/package/tensorflow2
MIT License
579 stars 88 forks source link

node > python > C wrapper ? #34

Open dcsan opened 3 years ago

dcsan commented 3 years ago

my understanding is that tensorflowJS provides bindings and direct access to the raw C libraries, but is currently only available up to TF 1.0

So this project wraps the python with node bindings, eg a "wrapper of a wrapper" but perhaps since google is seeming to support the python bindings more than JS, this is why you have made it?

just trying to understand how much of an adoption risk and benefit there is here?

possibly relevant: https://github.com/tensorflow/tfjs/issues/4317

yorkie commented 3 years ago

See https://github.com/alibaba/pipcook/blob/main/docs/manual/intro-to-boa.md, I created boa for that you mentioned Python bindings, actually, you could directly use tensorflow2 with boa just:

const tensorflow = boa.import('tensorflow');

See https://github.com/alibaba/pipcook/tree/main/example/boa for more examples. And this project is going to keep a consistent API with tfjs based on boa :)