Chinese language
Vietnam language
$(TF_TYPE) ="cpu"
$(go env GOOS) ="linux"
wget 'https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.8.0.tar.gz'
root@x /h/g/goTF# tar -xvf libtensorflow-cpu-linux-x86_64-1.8.0.tar.gz
./
./include/
./include/tensorflow/
./include/tensorflow/c/
./include/tensorflow/c/c_api.h
./include/tensorflow/c/c_api_experimental.h
./lib/
./lib/libtensorflow.so
./lib/libtensorflow_framework.so
./include/tensorflow/c/LICENSE
./include/tensorflow/c/eager/
./include/tensorflow/c/eager/c_api.h
package github.com/golang/example/hello: cannot download, $GOPATH not set. For more details see: go help gopath
root@x ~/g/goTF# whereis go
go: /usr/bin/go /usr/lib/go /usr/share/go /usr/share/man/man1/go.1.gz
root@x ~/g/goTF# go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/bin/go"
GORACE=""
GOROOT="/usr/lib/go-1.6"
GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
golang 1.9
https://medium.com/@patdhlk/how-to-install-go-1-9-1-on-ubuntu-16-04-ee64c073cd79
source ~/.profile
# Linux 上还需要执行 ldconfig
$ sudo ldconfig
go get -v -u github.com/tensorflow/tensorflow/tensorflow/go
root@x:~/golang# go get -v -u github.com/tensorflow/tensorflow/tensorflow/go
github.com/tensorflow/tensorflow (download)
github.com/tensorflow/tensorflow/tensorflow/go
# github.com/tensorflow/tensorflow/tensorflow/go
/tmp/go-build779611282/github.com/tensorflow/tensorflow/tensorflow/go/_obj/session.cgo2.o: In function `_cgo_c4c834237423_Cfunc_TF_DeviceListCount':
/tmp/go-build/github.com/tensorflow/tensorflow/tensorflow/go/_obj/cgo-gcc-prolog:103: undefined reference to `TF_DeviceListCount'
/tmp/go-build779611282/github.com/tensorflow/tensorflow/tensorflow/go/_obj/session.cgo2.o: In function `_cgo_c4c834237423_Cfunc_TF_DeviceListMemoryBytes':
/tmp/go-build/github.com/tensorflow/tensorflow/tensorflow/go/_obj/cgo-gcc-prolog:123: undefined reference to `TF_DeviceListMemoryBytes'
/tmp/go-build779611282/github.com/tensorflow/tensorflow/tensorflow/go/_obj/session.cgo2.o: In function `_cgo_c4c834237423_Cfunc_TF_DeviceListName':
/tmp/go-build/github.com/tensorflow/tensorflow/tensorflow/go/_obj/cgo-gcc-prolog:143: undefined reference to `TF_DeviceListName'
/tmp/go-build779611282/github.com/tensorflow/tensorflow/tensorflow/go/_obj/session.cgo2.o: In function `_cgo_c4c834237423_Cfunc_TF_DeviceListType':
/tmp/go-build/github.com/tensorflow/tensorflow/tensorflow/go/_obj/cgo-gcc-prolog:163: undefined reference to `TF_DeviceListType'
/tmp/go-build779611282/github.com/tensorflow/tensorflow/tensorflow/go/_obj/session.cgo2.o: In function `_cgo_c4c834237423_Cfunc_TF_SessionListDevices':
/tmp/go-build/github.com/tensorflow/tensorflow/tensorflow/go/_obj/cgo-gcc-prolog:216: undefined reference to `TF_SessionListDevices'
/tmp/go-build779611282/github.com/tensorflow/tensorflow/tensorflow/go/_obj/session.cgo2.o: In function `_cgo_c4c834237423_Cfunc_TF_DeleteDeviceList':
/tmp/go-build/github.com/tensorflow/tensorflow/tensorflow/go/_obj/cgo-gcc-prolog:50: undefined reference to `TF_DeleteDeviceList'
collect2: error: ld returned 1 exit status
Prerequisites:
Environment to build TensorFlow from source code (Linux or OS X). If you don't need GPU support, then try the following:
https://docs.bazel.build/versions/master/install-ubuntu.html
sudo apt-get install python swig python-numpy
root@x:~/golang/goTF/src# go test github.com/tensorflow/tensorflow/tensorflow/go
ok github.com/tensorflow/tensorflow/tensorflow/go 0.063s
curl http://j.mp/spf13-vim3 -L -o - | sh
ext install ms-vscode.Go
cd $GOPATH/src/gocv.io/x/gocv
make install
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.