Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Framework ¶
type Framework interface { Load(model *Model, flags ModelFlags) (err error) Run(model *Model) (out map[string]interface{}, err error) FrameworkTyp() string }
Framework interface used to implement specific ml framework implementations
type Metadata ¶
type Metadata struct { Name string Inputs struct { Params map[string]OperationParam Features map[string]Feature } Outputs map[string]OperationParam Method string Tag string SigDef string }
type Model ¶
Model represents a ML model. The metadata defines inputs, outputs, shapes, etc. The Instance object is a pointer to the actual framework obj. This will be used by the framework impl to execute models
func Load ¶
func Load(modelArchive string, framework Framework, flags ModelFlags) (*Model, error)
Load is unzipping the file and then passing it to be read
func (*Model) RemoveInput ¶
type ModelFlags ¶ added in v0.5.7
ModelFlags Contains flags to add to metadata and to aid in loading
type OperationParam ¶
Click to show internal directories.
Click to hide internal directories.