@@ -245,16 +245,18 @@ def training_epoch_end(
245
245
for train_batch in train_data:
246
246
out = training_step(train_batch)
247
247
train_outs.append(out)
248
- training_epoch_end(val_outs )
248
+ training_epoch_end(train_outs )
249
249
250
250
Args:
251
251
outputs: List of outputs you defined in training_step, or if there are multiple
252
- dataloaders, a list containing a list of outputs for each dataloader
252
+ dataloaders, a list containing a list of outputs for each dataloader
253
253
254
254
Return:
255
- Dict or OrderedDict (dict): Dict has the following optional keys:
256
- progress_bar -> Dict for progress bar display. Must have only tensors
257
- log -> Dict of metrics to add to logger. Must have only tensors (no images, etc)
255
+ Dict or OrderedDict
256
+ May contain the following optional keys:
257
+
258
+ - log (metrics to be added to the logger ; only tensors)
259
+ - any metric used in a callback (e.g. early stopping).
258
260
259
261
.. note:: If this method is not overridden, this won't be called.
260
262
@@ -282,7 +284,7 @@ def training_epoch_end(self, outputs):
282
284
283
285
With multiple dataloaders, `outputs` will be a list of lists. The outer list contains
284
286
one entry per dataloader, while the inner list contains the individual outputs of
285
- each validation step for that dataloader.
287
+ each training step for that dataloader.
286
288
287
289
.. code-block:: python
288
290
@@ -539,12 +541,14 @@ def validation_epoch_end(
539
541
540
542
Args:
541
543
outputs: List of outputs you defined in validation_step, or if there are multiple
542
- dataloaders, a list containing a list of outputs for each dataloader
544
+ dataloaders, a list containing a list of outputs for each dataloader
543
545
544
546
Return:
545
- Dict or OrderedDict (dict): Dict has the following optional keys:
546
- progress_bar -> Dict for progress bar display. Must have only tensors
547
- log -> Dict of metrics to add to logger. Must have only tensors (no images, etc)
547
+ Dict or OrderedDict
548
+ May have the following optional keys:
549
+
550
+ - progress_bar (dict for progress bar display ; only tensors)
551
+ - log (dict of metrics to add to logger ; only tensors).
548
552
549
553
.. note:: If you didn't define a validation_step, this won't be called.
550
554
0 commit comments