Skip to content

Commit

Permalink
check for kaggle env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lezwon committed Apr 23, 2020
1 parent 3c6f856 commit 5ca9dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def fit(
log.info(f'training on {self.num_tpu_cores} TPU cores')

# COLAB_GPU is an env var available by default in Colab environments.
start_method = 'fork' if os.getenv('COLAB_GPU') else 'spawn'
start_method = 'fork' if os.getenv('COLAB_GPU') or os.getenv('KAGGLE_URL_BASE') else 'spawn'

# track for predict
self.model = model
Expand Down

0 comments on commit 5ca9dbb

Please sign in to comment.