This commit is contained in:
William Falcon
2020-01-17 05:03:31 -05:00
parent f02d0bcbb9
commit 57db191028
7 changed files with 53 additions and 50 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ Once you've defined the LightningModule, fit it using a trainer.
trainer.fit(model)
Check out this `COLAB <https://colab.research.google.com/drive/1F_RNcHzTfFuQf-LeKvSlud6x7jXYkG31#scrollTo=HOk9c4_35FKg>`_
Check out this
`COLAB <https://colab.research.google.com/drive/1F_RNcHzTfFuQf-LeKvSlud6x7jXYkG31#scrollTo=HOk9c4_35FKg>`_
for a live demo.
"""
+4 -2
View File
@@ -257,9 +257,11 @@ class LightningModule(ABC, GradInformation, ModelIO, ModelHooks):
In this step you'd normally generate examples or calculate anything of interest such as accuracy.
Args:
batch (torch.nn.Tensor | (Tensor, Tensor) | [Tensor, Tensor]): The output of your dataloader. A tensor, tuple or list
batch (torch.nn.Tensor | (Tensor, Tensor) | [Tensor, Tensor]): The output of your dataloader.
A tensor, tuple or list
batch_idx (int): The index of this batch
dataloader_idx (int): The index of the dataloader that produced this batch (only if multiple val datasets used)
dataloader_idx (int): The index of the dataloader that produced this batch (only if multiple
val datasets used)
Return:
Dict or OrderedDict - passed to the validation_end step