Golang binding for Menoh
- Go 1.10+
- Menoh 1.1.1+
After install Menoh, then
$ go get -u github.com/pfnet-research/go-menoh
Add a path to library to LD_LIBRARY_PATH
environment variable. Menoh libraries are installed to /usr/local/lib
on default.
$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Add a path to DLLs distributed by Menoh to local Path environment.
\path\to\menoh\bin
|- libiomp5md.dll
|- menoh.dll
|- mkldnn.dll
|- mklml.dll
set PATH=\path\to\menoh\bin;%PATH%
- example/vgg16 is a tutorial for this package.
- example/mnist is an example using MNIST dataset and model.
Download ONNX file, using in menoh-rust test, before testing.
$ wget https://github.com/pfnet-research/menoh-rs/releases/download/assets/MLP.onnx -P test_data
$ go test ./...
Additionally go-menoh follows gofmt
with simplify option (-s
), go vet
and golint
.
- At first name of this repository is "menoh-go", and renamed to "go-menoh" to follow recommended naming rule
MIT License (see LICENSE file).