Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Mar 17, 2022
1 parent 116c88f commit d3e8d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmetrics/functional/classification/kl_divergence.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _kld_update(p: Tensor, q: Tensor, log_prob: bool) -> Tuple[Tensor, int]:
return measures, total


def _kld_compute(measures: Tensor, total: Tensor, reduction: Literal["_mean", "sum", "none", None] = "mean") -> Tensor:
def _kld_compute(measures: Tensor, total: Tensor, reduction: Literal["mean", "sum", "none", None] = "mean") -> Tensor:
"""Computes the KL divergenece based on the type of reduction.
Args:
Expand Down

0 comments on commit d3e8d37

Please sign in to comment.