PyTorchJob

Reference documentation for PyTorchJob

Packages:

kubeflow.org

Package v1beta2 is the v1beta2 version of the API.

Resource Types:

PyTorchJob

PyTorchJob represents the configuration of PyTorchJob

FieldDescription
apiVersionstringkubeflow.org/v1beta2
kindstringPyTorchJob
metadataKubernetes meta/v1.ObjectMetaStandard object’s metadata.Refer to the Kubernetes API documentation for the fields of themetadata field.
specPyTorchJobSpecSpecification of the desired behavior of the PyTorchJob.
activeDeadlineSecondsint64(Optional)Specifies the duration in seconds relative to the startTime that the job may be activebefore the system tries to terminate it; value must be positive integer.This method applies only to pods with restartPolicy == OnFailure or Always.
backoffLimitint32(Optional)Optional number of retries before marking this job failed.
cleanPodPolicycommon/v1beta2.CleanPodPolicyCleanPodPolicy defines the policy to kill pods after PyTorchJob issucceeded.Default to Running.
ttlSecondsAfterFinishedint32TTLSecondsAfterFinished is the TTL to clean up pytorch-jobs (temporarybefore kubernetes adds the cleanup controller).It may take extra ReconcilePeriod seconds for the cleanup, sincereconcile gets called periodically.Default to infinite.
pytorchReplicaSpecsmap[github.com/kubeflow/pytorch-operator/pkg/apis/pytorch/v1beta2.PyTorchReplicaType]*github.com/kubeflow/tf-operator/pkg/apis/common/v1beta2.ReplicaSpecPyTorchReplicaSpecs is map of PyTorchReplicaType and PyTorchReplicaSpecspecifies the PyTorch replicas to run.For example,{“Master”: PyTorchReplicaSpec,“Worker”: PyTorchReplicaSpec,}

statuscommon/v1beta2.JobStatusMost recently observed status of the PyTorchJob.This data may not be up to date.Populated by the system.Read-only.

PyTorchJobSpec

(Appears on:PyTorchJob)

PyTorchJobSpec is a desired state description of the PyTorchJob.

FieldDescription
activeDeadlineSecondsint64(Optional)Specifies the duration in seconds relative to the startTime that the job may be activebefore the system tries to terminate it; value must be positive integer.This method applies only to pods with restartPolicy == OnFailure or Always.
backoffLimitint32(Optional)Optional number of retries before marking this job failed.
cleanPodPolicycommon/v1beta2.CleanPodPolicyCleanPodPolicy defines the policy to kill pods after PyTorchJob issucceeded.Default to Running.
ttlSecondsAfterFinishedint32TTLSecondsAfterFinished is the TTL to clean up pytorch-jobs (temporarybefore kubernetes adds the cleanup controller).It may take extra ReconcilePeriod seconds for the cleanup, sincereconcile gets called periodically.Default to infinite.
pytorchReplicaSpecsmap[github.com/kubeflow/pytorch-operator/pkg/apis/pytorch/v1beta2.PyTorchReplicaType]*github.com/kubeflow/tf-operator/pkg/apis/common/v1beta2.ReplicaSpecPyTorchReplicaSpecs is map of PyTorchReplicaType and PyTorchReplicaSpecspecifies the PyTorch replicas to run.For example,{“Master”: PyTorchReplicaSpec,“Worker”: PyTorchReplicaSpec,}

PyTorchReplicaType(string alias)

PyTorchReplicaType is the type for PyTorchReplica.


Generated with gen-crd-api-reference-docson git commit e775742.

Feedback

Was this page helpful?

Glad to hear it! Please tell us how we can improve.

Sorry to hear that. Please tell us how we can improve.

Last modified 17.06.2019: update tfjob, pytorchjob ref scripts, style tables (#805) (affc79c5)