Skip to content

Commit

Permalink
set local and global rank
Browse files Browse the repository at this point in the history
  • Loading branch information
lezwon committed May 6, 2020
1 parent c0a4f9d commit 743bc4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ def __init__(

# tpu state flags
self.use_tpu = False
self.tpu_local_core_rank = None
self.tpu_global_core_rank = None
self.tpu_local_core_rank = self.tpu_id
self.tpu_global_core_rank = self.tpu_id

# distributed backend choice
self.distributed_backend = distributed_backend
Expand Down

0 comments on commit 743bc4a

Please sign in to comment.