MultiDeviceIteratorInit

public final class MultiDeviceIteratorInit

Initializes the multi device iterator with the given dataset.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<TInt64>
asOutput()
Returns the symbolic handle of the tensor.
static MultiDeviceIteratorInit
create(Scope scope, Operand<?> dataset, Operand<?> multiDeviceIterator, Operand<TInt64> maxBufferSize)
Factory method to create a class wrapping a new MultiDeviceIteratorInit operation.
Output<TInt64>
incarnationId()
An int64 indicating which incarnation of the MultiDeviceIterator is running.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "MultiDeviceIteratorInit"

Public Methods

public Output<TInt64> asOutput ()

Returns the symbolic handle of the 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 MultiDeviceIteratorInit create (Scope scope, Operand<?> dataset, Operand<?> multiDeviceIterator, Operand<TInt64> maxBufferSize)

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

Parameters
scope current scope
dataset Dataset to be iterated upon.
multiDeviceIterator A MultiDeviceIteratorResource.
maxBufferSize The maximum size of the host side per device buffer to keep.
Returns
  • a new instance of MultiDeviceIteratorInit

public Output<TInt64> incarnationId ()

An int64 indicating which incarnation of the MultiDeviceIterator is running.