RebatchDatasetV2

public final class RebatchDatasetV2

Creates a dataset that changes the batch size.

Creates a dataset that rebatches elements from `input_dataset` into new batch sizes.

Constants

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

Public Methods

Output<TType>
asOutput()
Returns the symbolic handle of the tensor.
static RebatchDatasetV2
create(Scope scope, Operand<?> inputDataset, Operand<TInt64> batchSizes, Operand<TBool> dropRemainder, List<Class<? extends TType>> outputTypes, List<Shape> outputShapes)
Factory method to create a class wrapping a new RebatchDatasetV2 operation.
Output<?>
handle()

Inherited Methods

Constants

public static final String OP_NAME

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

Constant Value: "RebatchDatasetV2"

Public Methods

public Output<TType> 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 RebatchDatasetV2 create (Scope scope, Operand<?> inputDataset, Operand<TInt64> batchSizes, Operand<TBool> dropRemainder, List<Class<? extends TType>> outputTypes, List<Shape> outputShapes)

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

Parameters
scope current scope
inputDataset A variant tensor representing the input dataset.
batchSizes A vector of integers representing the size of batches to produce. These values are cycled through in order.
Returns
  • a new instance of RebatchDatasetV2

public Output<?> handle ()