java.lang.Object
com.azure.resourcemanager.machinelearning.models.DistributionConfiguration
com.azure.resourcemanager.machinelearning.models.TensorFlow
All Implemented Interfaces:
com.azure.json.JsonSerializable<DistributionConfiguration>

public final class TensorFlow extends DistributionConfiguration
TensorFlow distribution configuration.
  • Constructor Details

    • TensorFlow

      public TensorFlow()
      Creates an instance of TensorFlow 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.
    • workerCount

      public Integer workerCount()
      Get the workerCount property: Number of workers. If not specified, will default to the instance count.
      Returns:
      the workerCount value.
    • withWorkerCount

      public TensorFlow withWorkerCount(Integer workerCount)
      Set the workerCount property: Number of workers. If not specified, will default to the instance count.
      Parameters:
      workerCount - the workerCount value to set.
      Returns:
      the TensorFlow object itself.
    • parameterServerCount

      public Integer parameterServerCount()
      Get the parameterServerCount property: Number of parameter server tasks.
      Returns:
      the parameterServerCount value.
    • withParameterServerCount

      public TensorFlow withParameterServerCount(Integer parameterServerCount)
      Set the parameterServerCount property: Number of parameter server tasks.
      Parameters:
      parameterServerCount - the parameterServerCount value to set.
      Returns:
      the TensorFlow 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 TensorFlow fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TensorFlow from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TensorFlow 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 TensorFlow.