-
-
Save hristian-carabulea/b6f8839322401b8f4018e028f7e9f171 to your computer and use it in GitHub Desktop.
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
# This address identifies the TPU we'll use when configuring TensorFlow. | |
TPU_WORKER = 'grpc://' + os.environ['COLAB_TPU_ADDR'] | |
tf.logging.set_verbosity(tf.logging.INFO) | |
resnet_model = tf.contrib.tpu.keras_to_tpu_model( | |
resnet_model, | |
strategy=tf.contrib.tpu.TPUDistributionStrategy( | |
tf.contrib.cluster_resolver.TPUClusterResolver(TPU_WORKER))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment