def forward(self, batch: torch.Tensor) -> torch.Tensor:
        """Compute residual stack.

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

        Returns:
            Computed feature maps.
        """
        for i in range(self._num_residual_layers):
            batch = self._layers[i](batch)
        return F.relu(batch)
Compute residual stack.

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

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