Skip to content

Commit

Permalink
Update pytorch_lightning/core/lightning.py
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Mocholí <[email protected]>
  • Loading branch information
edgarriba and carmocca authored Jun 17, 2021
1 parent c441b52 commit 6a6ca3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/core/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ def get_from_queue(self, queue: torch.multiprocessing.SimpleQueue) -> None:
Args:
queue: the instance of the queue from where to get the data.
"""
# NOTE: this must be called in the right order to get the `callback_metrics`
# NOTE: `add_to_queue` needs to be called before
callback_metrics: dict = queue.get()
self.trainer.callback_metrics.update(
apply_to_collection(callback_metrics, np.ndarray, lambda x: torch.tensor(x))
Expand Down

0 comments on commit 6a6ca3b

Please sign in to comment.