One of 'NHWC' or 'NCHW' (case insensitive).
Default value: 'NHWC'.
One of 'VALID' or 'SAME' (case insensitive).
Default value: 'VALID'.
Python str used to describe ops created by this function.
Default value: None (i.e., 'im2col').
batch of matrices representing subblock copies of x.
Same batch shape as x but with rightmost shape:
batch_shape + [oh * ow, block_shape * block_shape * channels],
where oh = (h - block_shape + 1) // slice_step and
ow = (w - block_shape + 1) // slice_step when padding = 'VALID'
and oh = h and ow = w when padding = 'SAME'.
shape Tensor equivalent to:
batch_shape + [oh, ow, block_shape * block_shape * channels] where
oh, ow are defined as above.