nikhilk / node-tensorflow

Node.js + TensorFlow
Apache License 2.0
587 stars 59 forks source link

Packaging TensorFlow in node module #3

Closed nikhilk closed 6 years ago

nikhilk commented 8 years ago

This needs to be done so as to publish things over on npmjs.org.

Right now, libtensorflow.so needs to be built out of https://github.com/nikhilk/tensorflow (via bazel build libtensorflow.so within tensorflow/cc) and manually copied.

Couple of things to tackle here:

  1. Build libtensorflow.dylib as well. Oddly enough, simply renaming the .so didn't seem to work.
  2. Figure out how this is packaged within the node module, without requiring a build (since building TensorFlow is... shall we say... a bit involved). A JavaScript/node.js developer shouldn't have to deal with all that build stuff.
nikhilk commented 6 years ago

The steps above are out of date. Need to followup with TensorFlow on the possibilities of having libtensorflow.so and related binaries be part of a TensorFlow release.

ralphtheninja commented 6 years ago

See https://github.com/nikhilk/node-tensorflow/issues/15

nikhilk commented 6 years ago

Closing this out in favor of #15.