Skip to content

Commit

Permalink
add tests for single scalar return from training
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 11, 2020
1 parent a8f28ba commit 5dce449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytorch_lightning/trainer/distrib_parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def tpu_train(self, tpu_core_idx, model):
model.prepare_data()
self._is_data_prepared = True

self.barrier()

# call setup after the ddp process has connected
self.setup('fit')
if self.is_function_implemented('setup', model):
Expand Down

0 comments on commit 5dce449

Please sign in to comment.