-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
graph: color large graphs by 'none' instead of 'structure' by default (4) #4742
Conversation
11b34c7
to
53d6f16
Compare
tensorboard/plugins/graph/tf_graph_dashboard/tf-graph-dashboard.ts
Outdated
Show resolved
Hide resolved
Thanks for attaching the table. It was insightful. |
const MAX_GRAPH_SIZE_TO_COMPUTE_TEMPLATES = { | ||
maxNodeCount: 10000, | ||
maxEdgeCount: 10000, | ||
}; |
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.
style thing: often, consts invert the casing :P
i.e.,
const MaxGraphSizeToComputeTemplates = {
MAX_NODE_COUNT: 10000,
MAX_Edge_COUNT: 10000,
};
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. I'll remember for next time!
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.
Thanks for the reviews!
const MAX_GRAPH_SIZE_TO_COMPUTE_TEMPLATES = { | ||
maxNodeCount: 10000, | ||
maxEdgeCount: 10000, | ||
}; |
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. I'll remember for next time!
The "Color by structure" mode can be very expensive to compute,
often consistently freezing TensorBoard for minutes with some large
graphs. This introduces a new "Color by none", which does not color
groups by structure.
Opening TensorBoard's Graphs with a small graph will still default to
"structure" coloring, but when loading a large graph, it will
automatically switch to "none", requiring the user to opt-in by clicking
on the radio button.
The condition for a large graph is "10K+ nodes && 10K+ edges", but
this can be tuned. These were determined by examining several
graphs manually:
Screenshot

Diffbase: #4741
Followup: none