Created
March 12, 2023 17:27
-
-
Save InputBlackBoxOutput/38491973dadd0cb1e1706148401788d7 to your computer and use it in GitHub Desktop.
Check TPU version on Google Colab
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
import os | |
from tensorflow.python.profiler import profiler_client | |
tpu_profile_service_address = os.environ['COLAB_TPU_ADDR'].replace('8470', '8466') | |
print(profiler_client.monitor(tpu_profile_service_address, 100, 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment