def forward(self, input_tensor: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]:
        """Forward pass through discriminator network.

        Args:
            input_tensor (torch.Tensor): Input image tensor

        Returns:
            tuple[torch.Tensor, torch.Tensor]: Tuple containing:
                - Classification scores (real/fake)
                - Intermediate features
        """
        features = self.features(input_tensor)
        classifier = self.classifier(features)
        classifier = classifier.view(-1, 1).squeeze(1)
        return classifier, features
Forward pass through discriminator network.

        Args:
            input_tensor (torch.Tensor): Input image tensor

        Returns:
            tuple[torch.Tensor, torch.Tensor]: Tuple containing:
                - Classification scores (real/fake)
                - Intermediate features
        
src/anomalib/models/image/ganomaly/torch_model.py