, x.shape]Ĭrop the start and end of dimensions of reshapedPermutedĪccording to crops to produce the output of shape: * blockShape - crops - crops. Reshape permuted to produce reshapedPermuted of shape * blockShape. Permute dimensions of reshapedto produce permuted of shape, blockShape.
, blockShape, batch / prod(blockShape), x.shape. This operation is equivalent to the following steps:
That cropStart + cropEnd <= blockShape * inputShape Must have shape, all values must be >= 0.Ĭrops = specifies the amount to crop from inputĭimension i + 1, which corresponds to spatial dimension i. N-D with x.shape = + spatialShape + remainingShape, where spatialShape has M dimensions.