tf.compat.v1.space_to_batch

View source on GitHub

SpaceToBatch for 4-D tensors of type T.

tf.compat.v1.space_to_batch(
    input, paddings, block_size=None, name=None, block_shape=None
)

This is a legacy version of the more general SpaceToBatchND.

Zero-pads and then rearranges (permutes) blocks of spatial data into batch. More specifically, this op outputs a copy of the input tensor where values from the height and width dimensions are moved to the batch dimension. After the zero-padding, both height and width of the input must be divisible by the block size.

Args:

Returns:

A Tensor. Has the same type as input.