Skip to content

[Debugger Plugin]: Add clickable links to Session.runs table #800

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

Merged
merged 1 commit into from
Dec 11, 2017
Merged

[Debugger Plugin]: Add clickable links to Session.runs table #800

merged 1 commit into from
Dec 11, 2017

Conversation

caisq
Copy link
Contributor

@caisq caisq commented Dec 8, 2017

Clicking a node or tensor in the table focuses on the corresponding node
in the graph visualizer, if it exists.

Copy link
Member

@chihuahua chihuahua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks Shanqing!

Yeah, we currently assume that the node exists by setting selectedNode to a certain value.

.sidebar {
position: relative;
height: 100%;
/* width: 40%; */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably just delete these commented lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

return((graphElementName) => {
let nodeName = graphElementName;
// If it is a tensor name, get the node name.
if (nodeName.indexOf(':') !== -1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: Maybe compute once and reuse value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This computation is pretty cheap. So I'd rather save the space.


.node-or-tensor-element {
text-decoration: underline;
cursor: pointer;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: Add a .node-or-tensor-element:hover effect to emphasize how an item is clickable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion. I did this for all clickable elements currently present in the Debugger Plugin.

Clicking a node or tensor in the table focuses on the corresponding node
in the graph visualizer, if it exists.
@caisq caisq merged commit c04ee3a into tensorflow:master Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants