generator

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: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CM

type CM struct {
	Namespace string
}

CM is the type for CM generator.

func NewCM

func NewCM(namespace string) *CM

NewCM returns a new CM generator.

func (CM) GeneratePyTorchJob

func (c CM) GeneratePyTorchJob(parameter *types.Parameter) (*pytorchv1.PyTorchJob, error)

GeneratePyTorchJob generates a new PyTorchJob.

func (CM) GenerateTFJob

func (c CM) GenerateTFJob(parameter *types.Parameter) (*tfv1.TFJob, error)

GenerateTFJob generates a new TFJob.

type Interface

type Interface interface {
	GenerateTFJob(parameter *types.Parameter) (*tfv1.TFJob, error)
	GeneratePyTorchJob(parameter *types.Parameter) (*pytorchv1.PyTorchJob, error)
}

Interface is the type for generator, which is used to generate TFJob/PyTorchJob.

type Native

type Native struct {
	Namespace string
}

Native is the type for native generator.

func NewNative

func NewNative(namespace string) *Native

New returns a new native generator.

func (Native) GeneratePyTorchJob

func (n Native) GeneratePyTorchJob(parameter *types.Parameter) (*pytorchv1.PyTorchJob, error)

GeneratePyTorchJob generates a new PyTorchJob.

func (Native) GenerateTFJob

func (n Native) GenerateTFJob(parameter *types.Parameter) (*tfv1.TFJob, error)

GenerateTFJob generates a new TFJob.

Jump to

Keyboard shortcuts

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