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 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.
Click to show internal directories.
Click to hide internal directories.