kf

package
v0.0.0-...-fb37531 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyMPIJobFields

func CopyMPIJobFields(from, to *mpijobv1.MPIJob) bool

CopyMPIJobFields copies the owned fields from one MPIJob to another Returns true if the fields copied from don't match to.

func CopyPytorchJobFields

func CopyPytorchJobFields(from, to *pytorchjobv1.PyTorchJob) bool

CopyPytorchJobFields copies the owned fields from one PytrochJob to another Returns true if the fields copied from don't match to.

func CopyTFJobFields

func CopyTFJobFields(from, to *tfjobv1.TFJob) bool

CopyTFJobFields copies the owned fields from one TFJob to another Returns true if the fields copied from don't match to.

func GenerateMPIJob

func GenerateMPIJob(
	name string,
	namespace string,
	labels map[string]string,
	spec corev1alpha1.KFSpec,
) *mpijobv1.MPIJob

GenerateMPIJob returns a a MPIJob given a a KFSpec

func GeneratePytorchJob

func GeneratePytorchJob(
	name string,
	namespace string,
	labels map[string]string,
	spec corev1alpha1.KFSpec,
) *pytorchjobv1.PyTorchJob

GeneratePytorchJob returns a a PytorchJob given a a KFSpec

func GenerateTFJob

func GenerateTFJob(
	name string,
	namespace string,
	labels map[string]string,
	spec corev1alpha1.KFSpec,
) *tfjobv1.TFJob

GenerateTFJob returns a a TFJob given a a KFSpec

func GetKFCommonCondFromMPICond

func GetKFCommonCondFromMPICond(cond mpijobv1.JobCondition) kfcommonv1.JobCondition

GetKFCommonCondFromMPICond generates a new common Job cond based on the MPIJobCond struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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