Skip to content

Commit

Permalink
module-based
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 22, 2023
1 parent 3b90a04 commit ba5dc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ print(my_metric(preds, target))

### Functional metrics

Similar to [`torch.nn`](https://pytorch.org/docs/stable/nn.html), most metrics have both a [module-based](https://lightning.ai/docs/torchmetrics/latest/references/modules.html) and a [functional](https://lightning.ai/docs/torchmetrics/latest/references/functional.html) version.
Similar to [`torch.nn`](https://pytorch.org/docs/stable/nn.html), most metrics have both a [module-based](https://lightning.ai/docs/torchmetrics/stable/references/metric.html) and functional version.
The functional versions are simple python functions that as input take [torch.tensors](https://pytorch.org/docs/stable/tensors.html) and return the corresponding metric as a [torch.tensor](https://pytorch.org/docs/stable/tensors.html).

```python
Expand Down

0 comments on commit ba5dc6c

Please sign in to comment.