Giter Site home page Giter Site logo

empathytech's Introduction

empathytech's People

Contributors

sincoew avatar

Watchers

 avatar  avatar

empathytech's Issues

Tensorflow / Go log

$(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

https://askubuntu.com/questions/118263/some-programs-not-found-when-used-with-sudo?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

# 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

govc

ext install ms-vscode.Go

cd $GOPATH/src/gocv.io/x/gocv
make install

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.