• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Go
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go binding for Tensorflow

Purpose

This binding was created to use Tensorflow in some existing Go projects that I have/had. For this reason it only provides the functionality that I need(ed). There are currently Go bindings brewing in upstream:

Once they are done, it's better the use the upstream binding, since it is always in sync with the latest Tensorflow.

Building

Get v0.8.0 of Tensorflow and build it:

$ git clone https://github.com/tensorflow/tensorflow.git
$ cd tensorflow
$ git checkout v0.8.0
$ git submodule init
$ git submodule update
$ ./configure
$ bazel build -c opt tensorflow:libtensorflow.so

Now you need to put tensor_c_api.h and libtensorflow.so visible somewhere for cgo and your C compiler. On OS X using Homebrew:

$ mkdir -p /usr/local/Cellar/tensorflow/0.8.0/{lib,include}
$ cp bazel-bin/tensorflow/libtensorflow.so /usr/local/Cellar/tensorflow/0.8.0/lib
$ cp tensorflow/core/public/tensor_c_api.h /usr/local/Cellar/tensorflow/0.8.0/include
$ brew link tensorflow

Now you can build the Go package as normal.

More Repositories

1

dictomaton

Finite state dictionaries in Java
Java
130
star
2

go2vec

Read and use word2vec vectors in Go
Go
56
star
3

golinear

liblinear bindings for Go
Go
45
star
4

dpar

Neural network transition-based dependency parser (in Rust)
Rust
43
star
5

nix-home

Nix home environment
Nix
42
star
6

citar-cxx

Citar part of speech tagger
C++
40
star
7

awesome-glove80

Because Glove80 is awesome
36
star
8

jitar

Jitar HMM part of speech tagger
Java
22
star
9

sentencepiece

Rust binding for the sentencepiece library
Rust
20
star
10

citar

Citar HMM part-of-speech tagger
Go
15
star
11

par

Parallel for loops and maps for Go
Go
10
star
12

rust2vec

Read/write word2vec and GloVe embeddings in Rust
Rust
10
star
13

gemm-benchmark

Simple [sd]gemm benchmark, similar to ACES dgemm
Rust
9
star
14

conllu

Reader/writer for the CoNLL-U format
Rust
8
star
15

tinyest

Tiny maximum entropy model parameter estimator
C
8
star
16

quzah

Generate sets of distinct colors
Java
8
star
17

brainfuck-pl

A brainf*ck interpreter in Prolog
Prolog
8
star
18

conllx-utils

CoNLL-X utilities
Rust
7
star
19

conllx-rs

CoNLL-X reader and writers for Rust
Rust
7
star
20

dotfiles

Personal dotfiles
Shell
6
star
21

gosvm

Go binding for libsvm
Go
6
star
22

wordpieces

Split tokens into word pieces
Rust
5
star
23

golinear-examples

Examples for the golinear package.
Go
5
star
24

conllx

Go reader for the CONLL-X format
Go
4
star
25

digest-pure

Pure implementation of the digest package
Haskell
3
star
26

chu-liu-edmonds

Chu-Liu-Edmonds minimal spanning tree (MST) decoding
Rust
3
star
27

ir-examples

IR16/17 examples
Jupyter Notebook
3
star
28

viscosity-workflow

Alfred 2 workflow for Viscosity
Python
3
star
29

snakefusion

🐍 A slim, low-maintenance Python wrapper for finalfusion.
Rust
3
star
30

toponn

Topological field prediction, deprecated for sticker:
3
star
31

conllu-utils

Utilities for working with CoNLL-U
Rust
3
star
32

alpino-tokenizer

Rust wrapper for the Alpino tokenizer
Rust
3
star
33

dl4nlp-examples

DL4NLP examples
Jupyter Notebook
3
star
34

thinc-rust-ops

Non-official(!) Rust Thinc Ops, with SIMD-vectorized implementations of many ops. Because Ops are fun to implement.
Rust
3
star
35

simpletbl

Tranformation-based learner for tagging
C++
2
star
36

approx-rand-test

Approximate randomization test
Haskell
2
star
37

vec2web

Small go2vec demo application
HTML
2
star
38

rtrie

Randomized ternary tries
Rust
2
star
39

nix-packages

My Nix package set
Nix
2
star
40

gosvm-examples

Examples for the gosvm package
Go
2
star
41

ndarray-tensorflow

Tensor wrapper with ndarray API
Rust
2
star
42

homewizard-energy

Homewizard WiFi P1 meter
Lua
1
star
43

marlin-kernels

Experiment with standalone Marlin kernels
Cuda
1
star
44

sics-zlib

zlib binding for SICStus Prolog
C
1
star
45

conllx-view

Small CoNLL-X treebank viewer
Rust
1
star
46

alpino-tools

Various tools to deal with Alpino data
Haskell
1
star
47

seqalign

Sequence alignments
Rust
1
star
48

alpino-tokenizer-python

Rust
1
star
49

transformers-examples

Jupyter Notebook
1
star
50

kinesis-advantage

Kinesis Advantage2/360 notes
1
star
51

headline-generation

Transformation-based learner for headline generation
Java
1
star