|
2 | 2 |
|
3 | 3 | import torch
|
4 | 4 | from torch import optim
|
5 |
| -from pytorch_lightning.core.decorators import data_loader |
6 | 5 |
|
7 | 6 |
|
8 | 7 | class LightValidationStepMixin:
|
@@ -64,7 +63,7 @@ class LightValidationMixin(LightValidationStepMixin):
|
64 | 63 | when val_dataloader returns a single dataloader
|
65 | 64 | """
|
66 | 65 |
|
67 |
| - def validation_end(self, outputs): |
| 66 | + def validation_epoch_end(self, outputs): |
68 | 67 | """
|
69 | 68 | Called at the end of validation to aggregate outputs
|
70 | 69 | :param outputs: list of individual outputs of each validation step
|
@@ -163,7 +162,7 @@ class LightValidationMultipleDataloadersMixin(LightValidationStepMultipleDataloa
|
163 | 162 | when val_dataloader returns multiple dataloaders
|
164 | 163 | """
|
165 | 164 |
|
166 |
| - def validation_end(self, outputs): |
| 165 | + def validation_epoch_end(self, outputs): |
167 | 166 | """
|
168 | 167 | Called at the end of validation to aggregate outputs
|
169 | 168 | :param outputs: list of individual outputs of each validation step
|
@@ -271,7 +270,7 @@ def test_step(self, batch, batch_idx, *args, **kwargs):
|
271 | 270 | class LightTestMixin(LightTestStepMixin):
|
272 | 271 | """Ritch test mixin."""
|
273 | 272 |
|
274 |
| - def test_end(self, outputs): |
| 273 | + def test_epoch_end(self, outputs): |
275 | 274 | """
|
276 | 275 | Called at the end of validation to aggregate outputs
|
277 | 276 | :param outputs: list of individual outputs of each validation step
|
@@ -561,7 +560,7 @@ def validation_step(self, batch, batch_idx, dataloader_idx, **kwargs):
|
561 | 560 |
|
562 | 561 | class LightTestMultipleDataloadersMixin(LightTestStepMultipleDataloadersMixin):
|
563 | 562 |
|
564 |
| - def test_end(self, outputs): |
| 563 | + def test_epoch_end(self, outputs): |
565 | 564 | """
|
566 | 565 | Called at the end of validation to aggregate outputs
|
567 | 566 | :param outputs: list of individual outputs of each validation step
|
|
0 commit comments