Created
December 18, 2020 21:33
-
-
Save maciejskorski/6fb8b066145ebef53d85adb99db8a9b2 to your computer and use it in GitHub Desktop.
profiling custom blocks of TF code
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
# wrap the TF code to be profiled with <start> and <stop> methods as below | |
tf.profiler.experimental.start('logs/profile') | |
for (x,y) in data: | |
train_step(x,y) | |
tf.profiler.experimental.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment