Class ThreadPoolDataset

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

@Operator(group="data.experimental") public final class ThreadPoolDataset extends RawOp implements Operand<TType>
Creates a dataset that uses a custom thread pool to compute input_dataset.
  • Field Details

  • Constructor Details

    • ThreadPoolDataset

      public ThreadPoolDataset(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static ThreadPoolDataset create(Scope scope, Operand<? extends TType> inputDataset, Operand<? extends TType> threadPool, List<Class<? extends TType>> outputTypes, List<Shape> outputShapes)
      Factory method to create a class wrapping a new ExperimentalThreadPoolDataset operation.
      Parameters:
      scope - current scope
      inputDataset - The inputDataset value
      threadPool - A resource produced by the ThreadPoolHandle op.
      outputTypes - The value of the outputTypes attribute
      outputShapes - The value of the outputShapes attribute
      Returns:
      a new instance of ThreadPoolDataset
    • handle

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