types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

View Source
const (
	// FrameworkTypeTensorFlow defines tensorflow type.
	FrameworkTypeTensorFlow = "tensorflow"
	// FrameworkTypePyTorch defines pytorch type.
	FrameworkTypePyTorch = "pytorch"
)
View Source
const (
	CleanPodPolicyAll     = "all"
	CleanPodPolicyRunning = "running"
	CleanPodPolicyNone    = "none"
)

CleanPodPolicy describes how to deal with pods when the job is finished.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameworkType

type FrameworkType string

FrameworkType is the type for types of the frameworks.

type Job

type Job struct {
	Framework FrameworkType
	Name      string
	PS        int
	// Master is for PyTorchJob.
	Master int
	Worker int
}

Job is the type for general jobs (PyTorchJob, TFJob).

type Parameter

type Parameter struct {
	Framework   FrameworkType
	PSCount     int
	WorkerCount int
	// MasterCount is for PyTorchJob.
	MasterCount  int
	GenerateName string
	Image        string
	CleanPolicy  string
	Resource     resource.JobResource
}

Parameter is the type for the parameter of the job.

Jump to

Keyboard shortcuts

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