:mod:`unet_tapered` =================== .. py:module:: unet_tapered .. autoapi-nested-parse:: U-Net model tapered at the end for low res output. Module Contents --------------- .. py:class:: Model(hparams) Bases: :class:`model.unet.Model` .. autoapi-inheritance-diagram:: unet_tapered.Model :parts: 1 This class implements modified U-Net module by removing the up-sampling layers once activation resolution becomes 1/4th the resolution of input. After the removal, feature compression layers are added which keep the resolution constant all along. The layers in the tapered end additionally have skip connections similar to DenseNet. It is equivalent to PyTorch's nn.Module in all aspects. :param LightningModule: The Pytorch-Lightning module derived from nn.module with useful hooks :type LightningModule: nn.Module .. method:: forward(self, x) Does the forward pass on the model. :param x: Input tensor batch. :type x: torch.Tensor :return: Output activations. :rtype: torch.Tensor