client

package
v0.0.0-...-9f00eee Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client gives access

func MakeClient

func MakeClient(logger *zap.Logger, schedulerUrl string) *Client

MakeClient creates a client for the scheduler

func (*Client) FinishJob

func (c *Client) FinishJob(jobId string) error

FinishJob makes the scheduler delete the job entry from the cache

func (*Client) SubmitInferenceTask

func (c *Client) SubmitInferenceTask(req []byte) ([]byte, error)

SubmitInferenceTask submits an inference task to the scheduler and returns the response from the inference task as a byte array

func (*Client) SubmitTrainTask

func (c *Client) SubmitTrainTask(req api.TrainRequest) (string, error)

SubmitTrainTask submits a training task to the scheduler

func (*Client) UpdateJob

func (c *Client) UpdateJob(task *api.TrainTask) error

UpdateJob sends a request to the scheduler to determine the new level of parallelism that should be given to a job based on metrics and previous epochs

Jump to

Keyboard shortcuts

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