BatchToSpace for N-D tensors of type T.
Compat aliases for migration
See Migration guide for more details.
tf.compat.v1.batch_to_space_nd( input, block_shape, crops, name=None )
This operation reshapes the "batch" dimension 0 into
M + 1 dimensions of shape
block_shape + [batch], interleaves these blocks back into the grid defined by
the spatial dimensions
[1, ..., M], to obtain a result with the same rank as
the input. The spatial dimensions of this intermediate result are then
optionally cropped according to
crops to produce the output. This is the
reverse of SpaceToBatch. See below for a precise description.
This operation is equivalent to the following steps: