See Download and Setup for instructions on how to install our release binaries or how to build from source.
Download the prebuilt library.
put it under bagua-tensorflow/tensorflow.
cd bagua-tensorflow
# Modify LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/tensorflowcd bagua-tensorflow
npm install
node-gyp configure buildHere we provided a MNIST demo.
cd demo/tf-mnist
# Train and export mnist model, the model file will be stored under model-zoo/tf/mnist
python mnist_train.py
# Run demo
node mnist.js