Documentation ¶
Index ¶
- Variables
- func CreateDefaultTbaseEvalJobInput() (input *pb.JobInput)
- func CreateDefaultTbaseInferJobInput() (input *pb.JobInput)
- func CreateDefaultTbaseTrainJobInput() (input *pb.JobInput)
- func GetTbaseInstallRepoCmds(repo string, tag string) (cmds []string)
- type Plugin
- type TbasePlugin
- func (p *TbasePlugin) GenerateCmds(input *pb.JobInput, id string) (cmds []string, err error)
- func (p *TbasePlugin) ParseBar(encode string) (currentStep uint32, totalSteps uint32, err error)
- func (p *TbasePlugin) ParseEval(encode string, jobId, modelId uint64) (out *pb.JobOutput, err error)
- func (p *TbasePlugin) ParseInfer(encode, date string, jobId, modelId uint64) (out *pb.JobOutput, err error)
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 GetTbaseInstallRepoCmds ¶
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) }
type TbasePlugin ¶
type TbasePlugin struct {
Sep string
}
func NewTbasePlugin ¶
func NewTbasePlugin() (p *TbasePlugin)
func (*TbasePlugin) GenerateCmds ¶
func (*TbasePlugin) ParseBar ¶
func (p *TbasePlugin) ParseBar(encode string) (currentStep uint32, totalSteps uint32, err error)
func (*TbasePlugin) ParseInfer ¶
Click to show internal directories.
Click to hide internal directories.