def METHOD_NAME(self, p: Tensor, q: Tensor) -> None:
    """Update metric states with predictions and targets."""
    measures, total = _kld_update(p, q, self.log_prob)
    if self.reduction is None or self.reduction == "none":
        self.measures.append(measures)  # type: ignore[operator,union-attr]
    else:
        self.measures += measures.sum()
        self.total += total