Documentation ¶
Index ¶
- func NewGeneralPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)
- type GeneralPredictor
- func (p *GeneralPredictor) Close() error
- func (p *GeneralPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func (p *GeneralPredictor) Modality() (dlframework.Modality, error)
- func (p *GeneralPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
- func (p *GeneralPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)
- func (p *GeneralPredictor) Reset(ctx context.Context) error
- func (p *GeneralPredictor) SetDesiredOutput(modality dlframework.Modality)
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
GeneralPredictor ...
func (*GeneralPredictor) Load ¶ added in v1.1.3
func (p *GeneralPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
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
Click to show internal directories.
Click to hide internal directories.