def forward(self, batch: torch.Tensor) -> torch.Tensor:
        """Encode inputs to be quantized into the bottom feature map.

        Args:
            batch (torch.Tensor): Batch of input images.

        Returns:
            Encoded feature maps.
        """
        x = self._conv_1(batch)
        x = F.relu(x)

        x = self._conv_2(x)
        x = F.relu(x)

        x = self._conv_3(x)
        return self._residual_stack(x)
Encode inputs to be quantized into the bottom feature map.

        Args:
            batch (torch.Tensor): Batch of input images.

        Returns:
            Encoded feature maps.
        
src/anomalib/models/image/dsr/torch_model.py