Class AnonymousIterator

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.data.AnonymousIterator
All Implemented Interfaces:
Shaped, Op, Operand<TType>

@Operator(group="data") public final class AnonymousIterator extends RawOp implements Operand<TType>
A container for an iterator resource.
  • Field Details

  • Constructor Details

    • AnonymousIterator

      public AnonymousIterator(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static AnonymousIterator create(Scope scope, List<Class<? extends TType>> outputTypes, List<Shape> outputShapes)
      Factory method to create a class wrapping a new AnonymousIteratorV3 operation.
      Parameters:
      scope - current scope
      outputTypes - The value of the outputTypes attribute
      outputShapes - The value of the outputShapes attribute
      Returns:
      a new instance of AnonymousIterator
    • handle

      public Output<? extends TType> handle()
      Gets 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.
      Returns:
      handle.
    • asOutput

      public Output<TType> asOutput()
      Description copied from interface: Operand
      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.

      Specified by:
      asOutput in interface Operand<TType>
      See Also: