Class TensorFlow
java.lang.Object
com.azure.resourcemanager.machinelearning.models.DistributionConfiguration
com.azure.resourcemanager.machinelearning.models.TensorFlow
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DistributionConfiguration>
TensorFlow distribution configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the distributionType property: [Required] Specifies the type of distribution framework.static TensorFlowfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TensorFlow from the JsonReader.Get the parameterServerCount property: Number of parameter server tasks.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withParameterServerCount(Integer parameterServerCount) Set the parameterServerCount property: Number of parameter server tasks.withWorkerCount(Integer workerCount) Set the workerCount property: Number of workers.Get the workerCount property: Number of workers.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
-
TensorFlow
public TensorFlow()Creates an instance of TensorFlow class.
-
-
Method Details
-
distributionType
Get the distributionType property: [Required] Specifies the type of distribution framework.- Overrides:
distributionTypein classDistributionConfiguration- Returns:
- the distributionType value.
-
workerCount
Get the workerCount property: Number of workers. If not specified, will default to the instance count.- Returns:
- the workerCount value.
-
withWorkerCount
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
Get the parameterServerCount property: Number of parameter server tasks.- Returns:
- the parameterServerCount value.
-
withParameterServerCount
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:
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 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.
-