Skip to content

Commit

Permalink
added todo
Browse files Browse the repository at this point in the history
  • Loading branch information
lezwon committed Sep 30, 2020
1 parent 28bd155 commit 051df9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytorch_lightning/accelerators/tpu_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(self, trainer):
def setup(self, model):
rank_zero_info(f'training on {self.trainer.tpu_cores} TPU cores')

# TODO: Move this check to Trainer __init__ or device parser
if not TPU_AVAILABLE:
raise MisconfigurationException('PyTorch XLA not installed.')

Expand Down

0 comments on commit 051df9b

Please sign in to comment.