Skip to content

Commit

Permalink
Debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Aug 6, 2022
1 parent 91bbf67 commit 8e44431
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,12 @@ def on_train_epoch_end(self, trainer, pl_module):
"accelerator",
[
pytest.param("gpu", marks=RunIf(min_cuda_gpus=1)),
"cpu",
],
)
def test_metric_are_properly_reduced(tmpdir, accelerator):
class TestingModel(BoringModel):
def __init__(self, *args, **kwargs) -> None:
def __init__(self) -> None:
super().__init__()
self.val_acc = Accuracy()

Expand All @@ -592,7 +593,6 @@ def validation_step(self, batch, batch_idx):
return super().validation_step(batch, batch_idx)

early_stop = EarlyStopping(monitor="val_acc", mode="max")

checkpoint = ModelCheckpoint(monitor="val_acc", save_last=True, save_top_k=2, mode="max")

model = TestingModel()
Expand Down

0 comments on commit 8e44431

Please sign in to comment.