AnonymousIteratorV3

public final class AnonymousIteratorV3

A container for an iterator resource.

Public Methods

Output<Object>
asOutput()
Returns the symbolic handle of a tensor.
static AnonymousIteratorV3
create(Scope scope, List<Class<?>> outputTypes, List<Shape> outputShapes)
Factory method to create a class wrapping a new AnonymousIteratorV3 operation.
Output<?>
handle()
A handle to the iterator that can be passed to a "MakeIterator" or "IteratorGetNext" op.

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 AnonymousIteratorV3 create (Scope scope, List<Class<?>> outputTypes, List<Shape> outputShapes)

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

Parameters
scope current scope
Returns
  • a new instance of AnonymousIteratorV3

public Output<?> handle ()

A handle to the iterator that can be passed to a "MakeIterator" or "IteratorGetNext" op. In contrast to Iterator, AnonymousIterator prevents resource sharing by name, and does not keep a reference to the resource container.