tfmodel

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(session *tf.Session, graph *tf.Graph, name string) (interface{}, error)

Export run model export, or error

func MatchOperation

func MatchOperation(graph *tf.Graph, name string) string

func RunExport

func RunExport(session *tf.Session, exportOp *tf.Operation) (interface{}, error)

RunExport runs export

func Signature

func Signature(model *tf.SavedModel) (*domain.Signature, error)

Signature returns model signature or error

Types

type Evaluator

type Evaluator struct {
	domain.Signature
	// contains filtered or unexported fields
}

Evaluator represents evaluator

func NewEvaluator

func NewEvaluator(signature *domain.Signature, session *tf.Session) *Evaluator

NewEvaluator creates new evaluator

func (*Evaluator) Close

func (e *Evaluator) Close() error

Close closes evaluator

func (*Evaluator) Evaluate

func (e *Evaluator) Evaluate(params []interface{}) ([]interface{}, error)

Evaluate evaluates model

Jump to

Keyboard shortcuts

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