Skip to content

Instantly share code, notes, and snippets.

@rish-16
Created May 29, 2021 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rish-16/7117a3ac00acb664af9722b72bf5b240 to your computer and use it in GitHub Desktop.
Save rish-16/7117a3ac00acb664af9722b72bf5b240 to your computer and use it in GitHub Desktop.
A guide on Colab TPU training using PyTorch XLA (Part 1)
import os
assert os.environ['COLAB_TPU_ADDR'], 'Make sure to select TPU from Edit > Notebook settings > Hardware accelerator'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment