LOOM API – Go
Install: go get github.com/openfluke/loom.
package main
import (
"fmt"
"github.com/openfluke/loom"
)
func main() {
layers := []loom.LayerConfig{
{Type: "dense", Width: 4, Height: 8, Activation: "relu"},
{Type: "dense", Width: 8, Height: 2, Activation: "softmax"},
}
net, _ := loom.BuildNetworkFromJSON(layers)
out := loom.ForwardCPU(net, [][]float32{ {0.1, 0.2, 0.3, 0.4} })
fmt.Println(out)
}