tf

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version added in v0.0.6

func Version() string

Version tensorflow version

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(name, exportDir string, tags, inputParamKey []string, outputParamKey string) *Model

New according the input params to generate the special tf model

func Register

func Register(name, exportDir string, tags []string) (*Model, error)

Register register and load model

func RegisterWithParamName

func RegisterWithParamName(name, exportDir string, tags, inputParamKey []string, outputParamKey string) (*Model, error)

RegisterWithParamName register with param key, and load model

func (*Model) Destruct

func (m *Model) Destruct() error

Destruct destroy model

func (*Model) Load

func (m *Model) Load() error

Load tf model from special path

func (*Model) Name

func (m *Model) Name() string

func (*Model) Path

func (m *Model) Path() string

func (*Model) Predict

func (m *Model) Predict(dataSet []interface{}) (ret interface{}, err error)

Predict tf predict

Jump to

Keyboard shortcuts

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