Created
May 29, 2021 06:08
-
-
Save rish-16/5e88b1a7361c1688540aac57f7344c79 to your computer and use it in GitHub Desktop.
A guide on Colab TPU training using PyTorch XLA (Part 4)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def map_fn(index, flags): | |
''' | |
Contains the following: | |
- data preprocessing | |
- model instantiation | |
- training loop | |
- validation (optional) | |
- testing | |
NOTE: all code beyond this belong inside this unless otherwise stated | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment