SpaceToDepth - version 1#
This page documents version 1 of operator SpaceToDepth. See SpaceToDepth for the latest version (since version 13).
Domain:
ai.onnxSince version: 1
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.
Inputs
input (T): 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.
Outputs
output (T): Output tensor of [N, C * blocksize * blocksize, H/blocksize, W/blocksize].
Attributes
blocksize (int): Blocks of [blocksize, blocksize] are moved.
Type Constraints
T: Constrain input and output types to all tensor types. Allowed types: tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8).