Example code to setup, train and export a basic tensorflow model in Python and then import that model in Go and start predicting.
tensorflow needs to be installed in your Python and Go environment. For Python pip install -r requirements
is enough. For Go, please refer to https://www.tensorflow.org/install/install_go
To run the example code, just do:
python example.py
go run example.go