All Projects → Applifier → go-tensorflow

Applifier / go-tensorflow

Licence: MIT license
Tools and libraries for using Tensorflow (and Tensorflow Serving) in go

Programming Languages

go
31211 projects - #10 most used programming language
python
139335 projects - #7 most used programming language
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to go-tensorflow

dashboard
Project for managing ML model and deploying ML module. It can deploy the Rekcurd service to Kubernetes cluster.
Stars: ✭ 27 (+8%)
Mutual labels:  grpc, ml
node-grpc-ssl
Basic example gRPC protocol with NodeJS + SSL + Docker
Stars: ✭ 40 (+60%)
Mutual labels:  grpc
serving-tensorflow-models
Serving TensorFlow models with TensorFlow Serving 📙
Stars: ✭ 41 (+64%)
Mutual labels:  tensorflow-serving
micro
A simple tool kit for building microservices.
Stars: ✭ 15 (-40%)
Mutual labels:  grpc
MixingBear
Package for automatic beat-mixing of music files in Python 🐻🎚
Stars: ✭ 73 (+192%)
Mutual labels:  ml
run-aspnet-grpc
Using gRPC in Microservices for Building a high-performance Interservice Communication with .Net 5. See gRPC Microservices and Step by Step Implementation on .NET Course w/ discount->
Stars: ✭ 82 (+228%)
Mutual labels:  grpc
yggdrasil-decision-forests
A collection of state-of-the-art algorithms for the training, serving and interpretation of Decision Forest models.
Stars: ✭ 156 (+524%)
Mutual labels:  ml
go-grpc
Package otgrpc provides OpenTracing support for any gRPC client or server.
Stars: ✭ 57 (+128%)
Mutual labels:  grpc
pico-ml
A toy programming language which is a subset of OCaml.
Stars: ✭ 36 (+44%)
Mutual labels:  ml
grpc-js-typescript
Generate gRPC TypeScript definitions for use with gRPC (@grpc/grpc-js).
Stars: ✭ 113 (+352%)
Mutual labels:  grpc
tensorflow-scala
A Scala binding of TensorFlow for Serving TensorFlow Models (Provides RESTful API)
Stars: ✭ 47 (+88%)
Mutual labels:  tensorflow-serving
vision-camera-image-labeler
VisionCamera Frame Processor Plugin to label images using MLKit Vision
Stars: ✭ 62 (+148%)
Mutual labels:  ml
odahu-flow
No description or website provided.
Stars: ✭ 12 (-52%)
Mutual labels:  ml
gcloud-opentracing
OpenTracing Tracer implementation for GCloud StackDriver in Go.
Stars: ✭ 44 (+76%)
Mutual labels:  grpc
fm.consulinterop
a lib for build micro-service
Stars: ✭ 33 (+32%)
Mutual labels:  grpc
go-loadbalance
A well designed loadbalance API with dozens of implementations for go-grpc loadbalance.
Stars: ✭ 37 (+48%)
Mutual labels:  grpc
n0stack
A simple cloud provider using gRPC
Stars: ✭ 51 (+104%)
Mutual labels:  grpc
fullstack-grpc
gRPC web with REST gateway and interceptors and example web app with envoy proxy
Stars: ✭ 42 (+68%)
Mutual labels:  grpc
clean-architecture
Example about clean architecture in golang
Stars: ✭ 20 (-20%)
Mutual labels:  grpc
modern-api-management
A modern approach to manage APIs effectively using Protobuf
Stars: ✭ 36 (+44%)
Mutual labels:  grpc

GoDoc Build Status

go-tensorflow

Unified interface for TensorFlow prediction for both embedded models and calls to Tensorflow Serving. Implementations automatically convert go types into matching TensorFlow Tensors.

Models should be exported in the SavedModel format.

Example

Example uses pre-trained model found under testdata/models wide_deep

import "github.com/Applifier/go-tensorflow/savedmodel"
// import "github.com/Applifier/go-tensorflow/serving"
// Uncomment line below to switch implementation
// predictor := serving.NewPredictor(servingModelClient)
predictor, _ := savedmodel.NewPredictor("testdata/models", "wide_deep", 1527087570, "serving_default")


m := map[string]interface{}{
    "age":            35.0,
    "capital_gain":   0.0,
    "capital_loss":   0.0,
    "education":      "Masters",
    "education_num":  14.0,
    "gender":         "Female",
    "hours_per_week": 29.0,
    "native_country": "United-States",
    "occupation":     "Prof-specialty",
    "relationship":   "Husband",
    "workclass":      "Private",
}

res, modelInfo, _ := predictor.Predict(
    context.Background(),
    map[string]interface{}{
        "inputs": m,
    },
    nil,
)

scores := res["scores"].Value().([][]float32)

fmt.Printf("scores %+v\n", scores[0])

// Output: scores [0.54612064 0.45387936]

fmt.Printf("model name %s, version %s", modelInfo.Name, modelInfo.Version)
// Output: model name wide_deep, version 1527087570

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].