Documentation ¶
Index ¶
- Constants
- func Archive(srcDir string) (destPath string, err error)
- func CreateTestEvalJob() (job *pb.Job)
- func CreateTestInferJob() (job *pb.Job)
- func CreateTestTrainJob() (job *pb.Job)
- func DeleteDirectory(dir string) (err error)
- func DeleteFile(filePath string) (err error)
- func GetMemory() (totalMemory, availableMemeory int64, err error)
- func GetPhysicalCPUNum() (n int32, err error)
- func Unarchive(srcPath, destDir string) (err error)
- type Conf
- type Container
- type Machine
- type Runner
- func (r *Runner) Clean(id string)
- func (r *Runner) CreateJob(job *pb.Job) (err error)
- func (r *Runner) DeleteEval(id string) (err error)
- func (r *Runner) DeleteInfer(id string) (err error)
- func (r *Runner) DeleteLog(id string) (err error)
- func (r *Runner) DeleteModel(id string) (err error)
- func (r *Runner) DeleteProgressBar(id string) (err error)
- func (r *Runner) DeleteShell(id string) (err error)
- func (r *Runner) DeleteTensorboard(id string) (err error)
- func (r *Runner) Destory() (err error)
- func (r *Runner) FinishedJob(job *pb.Job) (err error)
- func (r *Runner) Free()
- func (r *Runner) Heartbeat() (err error)
- func (r *Runner) RemoveContainer(job *pb.Job) (err error)
- func (r *Runner) RunJob(job *pb.Job) (err error)
- func (r *Runner) RunJobs(jobs []*pb.Job)
- func (r *Runner) StartOrDie() (err error)
- func (r *Runner) StopJob(job *pb.Job) (err error)
- func (r *Runner) UpdateBar(job *pb.Job, p plugins.Plugin) (err error)
- func (r *Runner) UpdateEvalOutput(job *pb.Job, p plugins.Plugin) (err error)
- func (r *Runner) UpdateInferOutput(job *pb.Job, p plugins.Plugin) (err error)
- func (r *Runner) UpdateOutput(job *pb.Job) (err error)
Constants ¶
View Source
const ARCHIVE_EXT = "zip"
View Source
const DEFAULT_IMAGE = "registry.cn-hangzhou.aliyuncs.com/tradingai/tbase:latest"
View Source
const UPLOAD_CONTENT_TYPE = "application/zip"
Variables ¶
This section is empty.
Functions ¶
func CreateTestEvalJob ¶
func CreateTestInferJob ¶
func CreateTestTrainJob ¶
func DeleteDirectory ¶
func DeleteFile ¶
Types ¶
type Conf ¶
type Machine ¶
type Machine struct { GPUNum int32 GPUsIndex []int32 GPUMemory int64 GPUUtilization float64 AvailableGPUMemory int64 CPUNum int32 CPUUtilization float64 Memory int64 AvailableMemory int64 // contains filtered or unexported fields }
func NewMachine ¶
func (*Machine) UpdateCPUUtilization ¶
func (*Machine) UpdateMemory ¶
type Runner ¶
type Runner struct { Conf *Conf Minio *minio.Client ID string Containers map[uint64]Container // key: jobID, value: Container Machine *Machine Status pb.RunnerStatus // contains filtered or unexported fields }
func (*Runner) DeleteEval ¶
func (*Runner) DeleteInfer ¶
func (*Runner) DeleteModel ¶
func (*Runner) DeleteProgressBar ¶
func (*Runner) DeleteShell ¶
func (*Runner) DeleteTensorboard ¶
func (*Runner) FinishedJob ¶
upload files: model, tensorboard Update job.output clean dirs and files: model dir, job log, tensorboard dir, evals, infers, progress_bars
func (*Runner) StartOrDie ¶
func (*Runner) UpdateEvalOutput ¶
func (*Runner) UpdateInferOutput ¶
Click to show internal directories.
Click to hide internal directories.