tf.raw_ops.SlidingWindowDataset

Creates a dataset that passes a sliding window over input_dataset.

input_datasetA Tensor of type variant.
window_sizeA Tensor of type int64. A scalar representing the number of elements in the sliding window.
window_shiftA Tensor of type int64. A scalar representing the steps moving the sliding window forward in one iteration. It must be positive.
window_strideA Tensor of type int64. A scalar representing the stride of the input elements of the sliding window. It must be positive.
output_typesA list of tf.DTypes that has length >= 1.
output_shapesA list of shapes (each a tf.TensorShape or list of ints) that has length >= 1.
drop_remainderAn optional bool. Defaults to True.
nameA name for the operation (optional).

A Tensor of type variant.