tf.compat.v1.batch_to_space

View source on GitHub

BatchToSpace for 4-D tensors of type T.

tf.compat.v1.batch_to_space(
    input, crops, block_size, name=None, block_shape=None
)

This is a legacy version of the more general BatchToSpaceND.

Rearranges (permutes) data from batch into blocks of spatial data, followed by cropping. This is the reverse transformation of SpaceToBatch. More specifically, this op outputs a copy of the input tensor where values from the batch dimension are moved in spatial blocks to the height and width dimensions, followed by cropping along the height and width dimensions.

Args:

Returns:

A Tensor. Has the same type as input.