plugins

package
v0.0.0-...-8739376 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EVAL_DIR = path.Join(ROOT_DATA_DIR, "evals")
View Source
var INFER_DIR = path.Join(ROOT_DATA_DIR, "infers")
View Source
var JOB_LOG_DIR = path.Join(ROOT_DATA_DIR, "logs")
View Source
var JOB_SHELL_DIR = path.Join(ROOT_DATA_DIR, "shells")
View Source
var MODEL_DIR = path.Join(ROOT_DATA_DIR, "models")
View Source
var PROGRESS_BAR_DIR = path.Join(ROOT_DATA_DIR, "progress_bars")
View Source
var ROOT_DATA_DIR = os.Getenv("RUNNER_DATA_DIR")
View Source
var TENSORBOARD_DIR = path.Join(ROOT_DATA_DIR, "tensorboards")

Functions

func CreateDefaultTbaseEvalJobInput

func CreateDefaultTbaseEvalJobInput() (input *pb.JobInput)

func CreateDefaultTbaseInferJobInput

func CreateDefaultTbaseInferJobInput() (input *pb.JobInput)

func CreateDefaultTbaseTrainJobInput

func CreateDefaultTbaseTrainJobInput() (input *pb.JobInput)

func GetTbaseInstallRepoCmds

func GetTbaseInstallRepoCmds(repo string, tag string) (cmds []string)

Types

type Plugin

type Plugin interface {
	GenerateCmds(input *pb.JobInput, id string) (cmds []string, err error)
	ParseBar(encode string) (currentStep uint32, totalSteps uint32, err error)
	ParseEval(encode string, jobId, modelId uint64) (out *pb.JobOutput, err error)
	ParseInfer(encode, date string, jobId, modelId uint64) (out *pb.JobOutput, err error)
}

func New

func New(job *pb.Job) (p Plugin)

type TbasePlugin

type TbasePlugin struct {
	Sep string
}

func NewTbasePlugin

func NewTbasePlugin() (p *TbasePlugin)

func (*TbasePlugin) GenerateCmds

func (p *TbasePlugin) GenerateCmds(input *pb.JobInput, id string) (cmds []string, err error)

func (*TbasePlugin) ParseBar

func (p *TbasePlugin) ParseBar(encode string) (currentStep uint32, totalSteps uint32, err error)

func (*TbasePlugin) ParseEval

func (p *TbasePlugin) ParseEval(encode string, jobId, modelId uint64) (out *pb.JobOutput, err error)

func (*TbasePlugin) ParseInfer

func (p *TbasePlugin) ParseInfer(encode, date string, jobId, modelId uint64) (out *pb.JobOutput, err error)

Jump to

Keyboard shortcuts

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