Skip to content

Commit

Permalink
Fix DDP_SPAWN compatibility with bug_report_model.py (#6892)
Browse files Browse the repository at this point in the history
(cherry picked from commit 87f0aea)
  • Loading branch information
ethanwharris authored and SeanNaren committed Apr 13, 2021
1 parent 9b6374f commit 1769e28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pl_examples/bug_report_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ def configure_optimizers(self):
# args = parser.parse_args(opt)


def test_run():
class TestModel(BoringModel):

def on_train_epoch_start(self) -> None:
print('override any method to prove your bug')

class TestModel(BoringModel):

def on_train_epoch_start(self) -> None:
print('override any method to prove your bug')
def test_run():

# fake data
train_data = torch.utils.data.DataLoader(RandomDataset(32, 64))
Expand Down

0 comments on commit 1769e28

Please sign in to comment.