Update import from lightning.pytorch (#409)
* update import * Remove unnecessary import return type --------- Co-authored-by: Filippo Olivo <filippo@filippoolivo.com>
This commit is contained in:
committed by
Nicola Demo
parent
d51de028bd
commit
4bec5bfc9a
@@ -1,6 +1,5 @@
|
||||
""" Module for SupervisedSolver """
|
||||
import torch
|
||||
from pytorch_lightning.utilities.types import STEP_OUTPUT
|
||||
from torch.nn.modules.loss import _Loss
|
||||
from ..optim import TorchOptimizer, TorchScheduler
|
||||
from .solver import SolverInterface
|
||||
@@ -145,7 +144,7 @@ class SupervisedSolver(SolverInterface):
|
||||
self.log('val_loss', loss, prog_bar=True, logger=True,
|
||||
batch_size=self.get_batch_size(batch), sync_dist=True)
|
||||
|
||||
def test_step(self, batch, batch_idx) -> STEP_OUTPUT:
|
||||
def test_step(self, batch, batch_idx):
|
||||
"""
|
||||
Solver test step.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user