Skip to content

Latest commit

 

History

History
79 lines (48 loc) · 1.8 KB

image_layers.rst

File metadata and controls

79 lines (48 loc) · 1.8 KB

Image layers

Layer Description
BilinearResize Resize image with bilinear interpolation
CompositeImageTransformation Rotate a image clockwise around its center, then shear , then translate
Rotation Rotate a image clockwise around its center

BilinearResize

The BilinearResize layer resizes image with bilinear interpolation

Expects a 3D input tensor, which is interpreted as an image in CHW format. Gradients are not propagated during backprop.

Arguments:

height

(int64) Output image height

width

(int64) Output image width

Back to Top<image-layers>

CompositeImageTransformation

The CompositeImageTransformation layer rotates an image clockwise around its center, then shear, then translate.

Expects 4 inputs: a 3D image tensor in CHW format, a scalar rotation angle, a tensor for (X,Y) shear factor, a tensor for (X,Y) translate.

Arguments: None

Back to Top<image-layers>

Rotation

The Rotation layer rotates an image clockwise around its center.

Expects two inputs: a 3D image tensor in CHW format and a scalar rotation angle.

Arguments: None

Back to Top<image-layers>