Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 28, 2021
1 parent ded1b12 commit fb1051b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/trainer/logging_/test_train_loop_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import torch
from torchmetrics import Accuracy

import pytorch_lightning as pl
from pytorch_lightning import callbacks, Trainer
from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint
from pytorch_lightning.utilities.exceptions import MisconfigurationException
Expand Down Expand Up @@ -581,7 +580,7 @@ def test_metric_are_properly_reduced(tmpdir):
class TestingModel(BoringModel):
def __init__(self, *args, **kwargs) -> None:
super().__init__()
self.val_acc = pl.metrics.Accuracy()
self.val_acc = Accuracy()

def training_step(self, batch, batch_idx):
output = super().training_step(batch, batch_idx)
Expand Down

0 comments on commit fb1051b

Please sign in to comment.