WLJS LogoWLJS Notebook

SpatialTransformationLayer

SpatialTransformationLayer[{h, w}] represents a net layer that applies an affine transformation to an input of size c×h₀×w₀ and returns an output of size c×h×w.

Examples

Create a spatial transformation layer:

SpatialTransformationLayer[{32, 32}]

Use in a neural network for image transformation:

net = NetChain[{SpatialTransformationLayer[{64, 64}]}]

Please visit the official Wolfram Language Reference for more details.

On this page