Last active
August 27, 2019 03:33
-
-
Save rish-16/d95834876246145169367644b2ec799c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Detect hardware | |
| try: | |
| tpu = tf.distribute.cluster_resolver.TPUClusterResolver() # TPU detection | |
| except ValueError: # If TPU not found | |
| tpu = None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment