def exp(self, input_tensor: torch.Tensor) -> torch.Tensor:
        """Exponentiates input with optional clamping.

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

        Returns:
            torch.Tensor: Exponentiated tensor, optionally clamped.
        """
        if self.clamp > 0:
            return torch.exp(self.log_e(input_tensor))
        return torch.exp(input_tensor)
Exponentiates input with optional clamping.

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

        Returns:
            torch.Tensor: Exponentiated tensor, optionally clamped.
        
src/anomalib/models/image/csflow/torch_model.py