depthToSpace function

VARP depthToSpace(
  1. VARP input,
  2. int blockSize
)

Rearranges data from depth into blocks of spatial data.

It is the reverse transformation of SpaceToDepth. More specifically, it outputs a copy of the input variable where values from the depth dimension are moved in spatial blocks to the height and width dimensions.

Args:

  • input: A variable.
  • block_size: An int that is >= 2. The size of the spatial block, same as in Space2Depth.

Returns:

  • A variable. Has the same type as input.

Implementation

VARP depthToSpace(VARP input, int blockSize) =>
    VARP.fromPointer(C.mnn_expr_DepthToSpace(input.ptr, blockSize));