KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
graft
★ 71
Open GitHub ↗
Go language bindings to the TensorFlow C API
Download README (.md)
Explore Similar Repositories
flutter_tensorflow_lite
:
A Flutter plugin to access TensorFlow Lite apis.
Tensorflow-DatasetAPI
:
Simple Tensorflow DatasetAPI Tutorial for reading image
tf_estimator_barebone
:
TensorFlow template with high-level API
eat_tensorflow2_in_30_days
:
本教程用于深度学习的基础阶段学习,采用的API框架为tensorflow 框架
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
graft
?
Download (.md)
# Graft [](https://github.com/tensorflow/tensorflow/tree/nightly) [](https://github.com/wamuir/graft/actions/workflows/integrate-nightly-changes.yml?query=branch%3Anightly) [](https://pkg.go.dev/github.com/wamuir/graft/tensorflow) ## About **Go language bindings to the TensorFlow C API** Graft contains nightly and release builds of the Go language bindings to the TensorFlow C API, including Go-compiled TensorFlow protocol buffers and generated Go wrappers for TensorFlow operations. Use Graft exactly as you would use the Go bindings found in the main TensorFlow repo, and with the following import statement: `github.com/wamuir/graft/tensorflow` ## Getting Started > Note: the Go bindings depend on > [libtensorflow](https://www.tensorflow.org/install/lang_c), which should be > downloaded (or compiled) and installed first. Installation is performed using `go get`: ```sh go get -u github.com/wamuir/graft/tensorflow/... ``` <details><summary><b>Hello TensorFlow</b></summary> ```go package main import ( tf "github.com/wamuir/graft/tensorflow" "github.com/wamuir/graft/tensorflow/op" "fmt" ) func main() { // Construct a graph with an operation that produces a string constant. s := op.NewScope() c := op.Const(s, "Hello from TensorFlow version " + tf.Version()) graph, err := s.Finalize() if err != nil { panic(err) } // Execute the graph in a session. sess, err := tf.NewSession(graph, nil) if err != nil { panic(err) } output, err := sess.Run(nil, []tf.Output{c}, nil) if err != nil { panic(err) } fmt.Println(output[0].Value()) } ``` </details> ## Credits Graft is a compilation of [TensorFlow](https://tensorflow.org/code) source code.