def log_e(self, input_tensor: torch.Tensor) -> torch.Tensor:
        """Compute log with optional clamping.

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

        Returns:
            torch.Tensor: Log of input, optionally clamped.
        """
        if self.clamp > 0:
            return self.clamp * 0.636 * torch.atan(input_tensor / self.clamp)
        return input_tensor
Compute log with optional clamping.

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

        Returns:
            torch.Tensor: Log of input, optionally clamped.
        
src/anomalib/models/image/csflow/torch_model.py