helper

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsOwner

func AsOwner(pytorchJob *torchv1.PyTorchJob) metav1.OwnerReference

AsOwner make OwnerReference according to the parameter

func CRDName

func CRDName() string

func Cleanup

func Cleanup(c *torchv1.PyTorchJobSpec)

Cleanup cleans up user passed spec, e.g. defaulting, transforming fields. TODO: move this to admission controller

func ConfigureAcceleratorsForPyTorchJobSpec

func ConfigureAcceleratorsForPyTorchJobSpec(c *torchv1.PyTorchJobSpec, accelerators map[string]torchv1.AcceleratorConfig) error

ConfigureAcceleratorsForPyTorchJobSpec adds any accelerator specific configuration to the pods.

Types

This section is empty.

Jump to

Keyboard shortcuts

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