SpaceToDepth rearranges blocks of spatial data into depth. More specifically, this op outputs a copy of the input tensor where values from the height and width dimensions are moved to the depth dimension.
Args
tensor(@Tensor<T>) - The input tensor of [N,C,H,W], where N is the batch axis, C is the channel or depth, H is the height and W is the width.
blocksize(usize) - The size of the blocks to move along [blocksize, blocksize].
Returns
A Tensor<T> of [N, C * blocksize * blocksize, H/blocksize, W/blocksize].