Skip to content

Commit

Permalink
Update tests/accelerators/test_dp.py
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
  • Loading branch information
2 people authored and Borda committed Mar 4, 2021
1 parent 56acaf1 commit 6b3d47e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/accelerators/test_dp.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,7 @@ def test_dp_training_step_dict(tmpdir):
"""
This test verify dp properly reduce dictionaries
"""

class TestModel(BoringModel):

def training_step(self, batch, batch_idx):
return super().training_step(batch, batch_idx)

model = TestModel()
model = BoringModel()
model.training_step_end = None
trainer = pl.Trainer(
default_root_dir=tmpdir,
Expand Down

0 comments on commit 6b3d47e

Please sign in to comment.