tiatoolbox . models . architecture . utils . UpSample2x
tiatoolbox
models
architecture
utils
UpSample2x
A layer to scale input by a factor of 2.
This layer uses Kronecker product underneath rather than the default pytorch interpolation.
Methods
forward
Logic for using layers defined in init.
Attributes
x (torch.Tensor) – Input images, the tensor is in the shape of NCHW.
via nearest neighbour interpolation. The tensor is the shape as NCHW.
ret (torch.Tensor)