client

package
v0.0.0-...-8b6d769 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close tears down underlying grpc connection.

func Infer

func Infer[I, O any](modelFactory func() model.Model[I, O], input I) (O, error)

Infer is a generic function takes in modelFactory to create model.Model and input for model.PreProcess(), and performs infer request based on model metadata automatically.

func Init

func Init(url string, models []model.ModelMeta) error

Init initializes grpc connection and fetch all models metadata from grpc server.

func ModelMetadataRequest

func ModelMetadataRequest(client protobuf.GRPCInferenceServiceClient, modelName string, modelVersion string) (*protobuf.ModelMetadataResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL