TensorFlow Class

public final class TensorFlow
extends DistributionConfiguration

TensorFlow distribution configuration.

Constructor Summary

Constructor Description
TensorFlow()

Creates an instance of TensorFlow class.

Method Summary

Modifier and Type Method and Description
DistributionType distributionType()

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

static TensorFlow fromJson(JsonReader jsonReader)

Reads an instance of TensorFlow from the JsonReader.

Integer parameterServerCount()

Get the parameterServerCount property: Number of parameter server tasks.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TensorFlow withParameterServerCount(Integer parameterServerCount)

Set the parameterServerCount property: Number of parameter server tasks.

TensorFlow withWorkerCount(Integer workerCount)

Set the workerCount property: Number of workers.

Integer workerCount()

Get the workerCount property: Number of workers.

Methods inherited from DistributionConfiguration

Methods inherited from java.lang.Object

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:

TensorFlow.distributionType()

Returns:

the distributionType value.

fromJson

public static TensorFlow fromJson(JsonReader jsonReader)

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.

parameterServerCount

public Integer parameterServerCount()

Get the parameterServerCount property: Number of parameter server tasks.

Returns:

the parameterServerCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TensorFlow.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

TensorFlow.validate()

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.

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.

workerCount

public Integer workerCount()

Get the workerCount property: Number of workers. If not specified, will default to the instance count.

Returns:

the workerCount value.

Applies to