def compute(self) -> torch.Tensor:
        """First compute PR curve, then compute area under the curve.

        Returns:
            Value of the AUPR metric
        """
        prec: torch.Tensor
        rec: torch.Tensor

        prec, rec = self._compute()
        return auc(rec, prec, reorder=True)
First compute PR curve, then compute area under the curve.

        Returns:
            Value of the AUPR metric
        
src/anomalib/metrics/aupr.py