PassThrough
This operator corresponds to the Reorg operator in the Caffe framework. For details about the customization method, see "A Special Topic for Network Customization" > "Custom Caffe Network Modification" > "Custom Operator Description" in ATC Instructions.
Input
- x:
- Required: yes
- Type: float16, float32, int8, uint8, int16, uint16, int32, uint32, int64, uint64
- Description: transfers channel data to 2D data, or performs the reverse operation. If reverse==True and the input shape is [batch, stride * stride * C, H, W], the output shape is [batch, C, H * stride, W * stride].
- Restrictions: none
Attribute
- stride:
- Required: no
- Type: int
- Description: plane or channel scaling factor (default = 2)
- Restriction: Must be of type float16.
- reverse:
- Required: no
- Type: bool
- Description: If True, DepthToSpace; if False, SpaceToDepth.
- Restriction: Must be of type float16.
Output
y:
- Required: yes
- Type: float16, float32, int8, uint8, int16, uint16, int32, uint32, int64, uint64
- Description: transfers channel data to 2D data, or performs the reverse operation. If reverse==True and the input shape is [batch, stride * stride * C, H, W], the output shape is [batch, C, H * stride, W * stride].
- Restrictions: none
Parent topic: Supported Caffe Operators