Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0x404 committed Sep 12, 2023
1 parent e958c6f commit 78af0e6
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,12 @@ class _ResultCollection(dict):
"""Collection (dictionary) of
:class:`~lightning.pytorch.trainer.connectors.logger_connector.result._ResultMetric`
Example:
# `device` needs to be provided before logging
result = _ResultCollection(training=True, torch.device("cpu"))
Example::
# you can log to a specific collection.
# arguments: fx, key, value, metadata
result = _ResultCollection(training=True)
result.log('training_step', 'acc', torch.tensor(...), on_step=True, on_epoch=True)
result.log('validation_step', 'recall', torch.tensor(...), on_step=True, on_epoch=True)
"""
Expand Down

0 comments on commit 78af0e6

Please sign in to comment.