Class PyTorch
java.lang.Object
com.azure.resourcemanager.machinelearning.models.DistributionConfiguration
com.azure.resourcemanager.machinelearning.models.PyTorch
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DistributionConfiguration>
PyTorch distribution configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the distributionType property: [Required] Specifies the type of distribution framework.static PyTorchfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PyTorch from the JsonReader.Get the processCountPerInstance property: Number of processes per node.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withProcessCountPerInstance(Integer processCountPerInstance) Set the processCountPerInstance property: Number of processes per node.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PyTorch
public PyTorch()Creates an instance of PyTorch class.
-
-
Method Details
-
distributionType
Get the distributionType property: [Required] Specifies the type of distribution framework.- Overrides:
distributionTypein classDistributionConfiguration- Returns:
- the distributionType value.
-
processCountPerInstance
Get the processCountPerInstance property: Number of processes per node.- Returns:
- the processCountPerInstance value.
-
withProcessCountPerInstance
Set the processCountPerInstance property: Number of processes per node.- Parameters:
processCountPerInstance- the processCountPerInstance value to set.- Returns:
- the PyTorch object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDistributionConfiguration- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DistributionConfiguration>- Overrides:
toJsonin classDistributionConfiguration- Throws:
IOException
-
fromJson
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.
-