a tensorflow serving Go client demo
- tensorflow
- Go 1.7 at lease
cd $GOPATH/src
git clone https://github.com/SineYuan/tensorflow-demo.git
cd $GOPATH/src/tensorflow-demo/mnist
// single layer perceptron with softmax
python mnist_softmax.py --model_version=1
//convolutional neural networks
python mnist_cnn.py --model_version=2
docker run -p 8500:8500 -v $PWD:/work sineyuan/tensorflow_model_server --model_base_path=/work/model
cd ..
go run main.go
view demo at http://localhost:1323