tensorflow / tensorboard

TensorFlow's Visualization Toolkit
Apache License 2.0
6.73k stars 1.66k forks source link

Graph element isolate #5420

Open Marius-Juston opened 3 years ago

Marius-Juston commented 3 years ago

Hello,

It would be nice to have the ability to right click a graph element and have the option of "Isolate" underneath the "remove from main graph", which would hide every other piece of the network from the graph view, i.e, turn everything invisible except for that selection. This would make it easier to both export the PNG of just that element or just demonstrate / focus on that single piece.

stephanwlee commented 3 years ago

Thanks for the feature request.

So the team understands the use case though, in what cases and why do you export the graph visualization as an image? Also, when you say "single piece", do you mean a subgraph? A single node is quite meaningless, right?

Marius-Juston commented 3 years ago

I want to be able to export the graph visualization as an image for presentations like in Powerpoints, GitHub READMEs or anything else. Also yes, when I meant a "single piece" I meant a sub graph / name scope group, sorry about that.

This would be for the use case of demonstrating blocks such as Resblocks which are a combination relu, convolution, and additions; however, if I were to just demonstrate that piece of a large network network. I would have to export the whole network graph as a PNG and then crop the image to only include that piece.

stephanwlee commented 3 years ago

Got it, thank you for clarification.

bileschi commented 3 years ago

Pruning and visualizing sub-networks of the graph are a long standing request. Agreed that this feature would be a welcome PR. Unfortunately the core team does not have much capacity at the moment to devote to the graph plugin.