-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add demo data for op_profile view #501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried out the demo, and it works nicely. Just a few comments.
@@ -33,6 +33,7 @@ | |||
from tensorboard.plugins.profile import profile_demo_data | |||
from tensorboard.plugins.profile import profile_plugin | |||
from tensorboard.plugins.profile import trace_events_pb2 | |||
from shutil import copyfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you replace with import shutil
and move it near to import os
? Native imports come first, and python style is to import the module, then use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have this 1 comment, and then lets merge. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. (Sorry, not sure how I missed this)
@@ -0,0 +1,95 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, "is overhead, and a good target for optimization" is a dangling half-sentence. I think something might be missing there.
The data is about the minimal set that exercises all current features (and #484)
For brevity, it omits some "required" stuff we don't currently use, like the byProgramStructure tree, and the raw{Time,Flops} metrics.
@ioeric