All Implemented Interfaces:
com.azure.json.JsonSerializable<DistributionConfiguration>

public final class PyTorch extends DistributionConfiguration
PyTorch distribution configuration.
  • 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:
      distributionType in class DistributionConfiguration
      Returns:
      the distributionType value.
    • processCountPerInstance

      public Integer processCountPerInstance()
      Get the processCountPerInstance property: Number of processes per node.
      Returns:
      the processCountPerInstance value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class DistributionConfiguration
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DistributionConfiguration>
      Overrides:
      toJson in class DistributionConfiguration
      Throws:
      IOException
    • fromJson

      public static PyTorch fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.