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.
Public Methods
Output<Object> |
asOutput()
Returns the symbolic handle of a tensor.
|
static RebatchDatasetV2 | |
Output<?> |
handle()
|
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 RebatchDatasetV2 create (Scope scope, Operand<?> inputDataset, Operand<Long> batchSizes, Operand<Boolean> dropRemainder, List<Class<?>> 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