predictor

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: NCSA Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGeneralPredictor added in v1.1.3

func NewGeneralPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)

NewGeneralPredictor ...

Types

type GeneralPredictor added in v1.1.3

type GeneralPredictor struct {
	common.Base
	// contains filtered or unexported fields
}

GeneralPredictor ...

func (*GeneralPredictor) Close added in v1.1.3

func (p *GeneralPredictor) Close() error

Close ...

func (*GeneralPredictor) Load added in v1.1.3

Load ...

func (*GeneralPredictor) Modality added in v1.1.3

func (p *GeneralPredictor) Modality() (dlframework.Modality, error)

Modality ...

func (*GeneralPredictor) Predict added in v1.1.3

func (p *GeneralPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error

Predict ...

func (*GeneralPredictor) ReadPredictedFeaturesAsMap added in v1.1.3

func (p *GeneralPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)

ReadPredictedFeaturesAsMap ...

func (*GeneralPredictor) Reset added in v1.1.3

func (p *GeneralPredictor) Reset(ctx context.Context) error

Reset ...

func (*GeneralPredictor) SetDesiredOutput added in v1.2.6

func (p *GeneralPredictor) SetDesiredOutput(modality dlframework.Modality)

This allows postprocess to use different output formats, however, the model has to output in a format that the desired modality postprocess can handle

Jump to

Keyboard shortcuts

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