Warning: This API is deprecated and will be removed in a future version of TensorFlow after the replacement is stable.

DataServiceDatasetV2

public final class DataServiceDatasetV2

Creates a dataset that reads data from the tf.data service.

Nested Classes

class DataServiceDatasetV2.Options Optional attributes for DataServiceDatasetV2  

Public Methods

Output<Object>
asOutput()
Returns the symbolic handle of a tensor.
static DataServiceDatasetV2
create(Scope scope, Operand<Long> datasetId, Operand<String> processingMode, Operand<String> address, Operand<String> protocol, Operand<String> jobName, Operand<Long> consumerIndex, Operand<Long> numConsumers, Operand<Long> maxOutstandingRequests, Operand<?> iterationCounter, List<Class<?>> outputTypes, List<Shape> outputShapes, Options... options)
Factory method to create a class wrapping a new DataServiceDatasetV2 operation.
static DataServiceDatasetV2.Options
dataTransferProtocol(String dataTransferProtocol)
Output<?>
handle()
static DataServiceDatasetV2.Options
targetWorkers(String targetWorkers)
static DataServiceDatasetV2.Options
taskRefreshIntervalHintMs(Long taskRefreshIntervalHintMs)

Inherited Methods

Public Methods

public Output<Object> asOutput ()

Returns the symbolic handle of a tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static DataServiceDatasetV2 create (Scope scope, Operand<Long> datasetId, Operand<String> processingMode, Operand<String> address, Operand<String> protocol, Operand<String> jobName, Operand<Long> consumerIndex, Operand<Long> numConsumers, Operand<Long> maxOutstandingRequests, Operand<?> iterationCounter, List<Class<?>> outputTypes, List<Shape> outputShapes, Options... options)

Factory method to create a class wrapping a new DataServiceDatasetV2 operation.

Parameters
scope current scope
options carries optional attributes values
Returns
  • a new instance of DataServiceDatasetV2

public static DataServiceDatasetV2.Options dataTransferProtocol (String dataTransferProtocol)

public Output<?> handle ()

public static DataServiceDatasetV2.Options targetWorkers (String targetWorkers)

public static DataServiceDatasetV2.Options taskRefreshIntervalHintMs (Long taskRefreshIntervalHintMs)