Documentation ¶
Index ¶
- func AddPredictor(framework dl.FrameworkManifest, predictor predict.Predictor) error
- func GetPredictor(framework dl.FrameworkManifest) (predict.Predictor, error)
- func Predictors() []string
- func UploadDir() (string, error)
- type Agent
- func (p *Agent) FindFrameworkModel(ctx context.Context, req *dl.PredictRequest) (*dl.FrameworkManifest, *dl.ModelManifest, error)
- func (p *Agent) Predict(ctx context.Context, req *dl.PredictRequest) (*dl.PredictResponse, error)
- func (p *Agent) ReadInput(ctx context.Context, req *dl.PredictRequest) (io.ReadCloser, error)
- func (p *Agent) RegisterManifests() (*grpc.Server, error)
- func (p *Agent) RegisterPredictor() (*grpc.Server, error)
- type Base
- type Option
- type Options
- type Registry
- func (c *Registry) FrameworkAgents(context.Context, *dl.FrameworkRequest) (*dl.Agents, error)
- func (c *Registry) FrameworkManifests(context.Context, *dl.FrameworkRequest) (*dl.FrameworkManifestsResponse, error)
- func (c *Registry) ModelAgents(context.Context, *dl.ModelRequest) (*dl.Agents, error)
- func (c *Registry) ModelManifests(context.Context, *dl.ModelRequest) (*dl.ModelManifestsResponse, error)
- func (c *Registry) PublishInRegistery() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPredictor ¶
func AddPredictor(framework dl.FrameworkManifest, predictor predict.Predictor) error
func GetPredictor ¶
func GetPredictor(framework dl.FrameworkManifest) (predict.Predictor, error)
func Predictors ¶
func Predictors() []string
Types ¶
type Agent ¶
type Agent struct { Base // contains filtered or unexported fields }
func (*Agent) FindFrameworkModel ¶
func (p *Agent) FindFrameworkModel(ctx context.Context, req *dl.PredictRequest) (*dl.FrameworkManifest, *dl.ModelManifest, error)
func (*Agent) Predict ¶
func (p *Agent) Predict(ctx context.Context, req *dl.PredictRequest) (*dl.PredictResponse, error)
func (*Agent) ReadInput ¶
func (p *Agent) ReadInput(ctx context.Context, req *dl.PredictRequest) (io.ReadCloser, error)
type Base ¶
type Base struct {
Framework dl.FrameworkManifest
}
func (*Base) PublishInPredictor ¶
func (*Base) PublishInRegistery ¶
type Registry ¶
type Registry struct {
Base
}
func (*Registry) FrameworkAgents ¶
func (*Registry) FrameworkManifests ¶
func (c *Registry) FrameworkManifests(context.Context, *dl.FrameworkRequest) (*dl.FrameworkManifestsResponse, error)
func (*Registry) ModelAgents ¶
func (*Registry) ModelManifests ¶
func (c *Registry) ModelManifests(context.Context, *dl.ModelRequest) (*dl.ModelManifestsResponse, error)
func (*Registry) PublishInRegistery ¶
Click to show internal directories.
Click to hide internal directories.