Skip to content

Commit

Permalink
docs: Update compute_with_cache default value to True in Metric
Browse files Browse the repository at this point in the history
… class (#2499)
  • Loading branch information
S-aiueo32 authored Apr 13, 2024
1 parent ca7c8eb commit 72aa929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torchmetrics/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Metric(Module, ABC):
- distributed_available_fn: Function that checks if the distributed backend is available. Defaults to a
check of ``torch.distributed.is_available()`` and ``torch.distributed.is_initialized()``.
- sync_on_compute: If metric state should synchronize when ``compute`` is called. Default is ``True``
- compute_with_cache: If results from ``compute`` should be cached. Default is ``False``
- compute_with_cache: If results from ``compute`` should be cached. Default is ``True``
"""

Expand Down

0 comments on commit 72aa929

Please sign in to comment.