PyTorch Class

public final class PyTorch
extends DistributionConfiguration

PyTorch distribution configuration.

Constructor Summary

Constructor Description
PyTorch()

Creates an instance of PyTorch class.

Method Summary

Modifier and Type Method and Description
DistributionType distributionType()

Get the distributionType property: [Required] Specifies the type of distribution framework.

static PyTorch fromJson(JsonReader jsonReader)

Reads an instance of PyTorch from the JsonReader.

Integer processCountPerInstance()

Get the processCountPerInstance property: Number of processes per node.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PyTorch withProcessCountPerInstance(Integer processCountPerInstance)

Set the processCountPerInstance property: Number of processes per node.

Methods inherited from DistributionConfiguration

Methods inherited from java.lang.Object

Constructor Details

PyTorch

public PyTorch()

Creates an instance of PyTorch class.

Method Details

distributionType

public DistributionType distributionType()

Get the distributionType property: [Required] Specifies the type of distribution framework.

Overrides:

PyTorch.distributionType()

Returns:

the distributionType value.

fromJson

public static PyTorch fromJson(JsonReader jsonReader)

Reads an instance of PyTorch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PyTorch if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PyTorch.

processCountPerInstance

public Integer processCountPerInstance()

Get the processCountPerInstance property: Number of processes per node.

Returns:

the processCountPerInstance value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PyTorch.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

PyTorch.validate()

withProcessCountPerInstance

public PyTorch withProcessCountPerInstance(Integer processCountPerInstance)

Set the processCountPerInstance property: Number of processes per node.

Parameters:

processCountPerInstance - the processCountPerInstance value to set.

Returns:

the PyTorch object itself.

Applies to