MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / subsceneBuild

Function subsceneBuild

tensorboard/plugins/graph/tf_graph_common/node.ts:206–225  ·  view source on GitHub ↗

* Update or remove the subscene of a render group node depending on whether it * is a expanded. If the node is not a group node, this method has no effect. * * @param nodeGroup selection of the container * @param renderNodeInfo the render information for the node. * @param sceneElement <tf-grap

(
  nodeGroup,
  renderNodeInfo: render.RenderGroupNodeInfo,
  sceneElement: TfGraphScene
)

Source from the content-addressed store, hash-verified

204 * not have a subscene.
205 */
206function subsceneBuild(
207 nodeGroup,
208 renderNodeInfo: render.RenderGroupNodeInfo,
209 sceneElement: TfGraphScene
210) {
211 if (renderNodeInfo.node.isGroupNode) {
212 if (renderNodeInfo.expanded) {
213 // Recursively build the subscene.
214 return buildGroupForScene(
215 nodeGroup,
216 renderNodeInfo,
217 sceneElement,
218 Class.Subscene.GROUP
219 );
220 }
221 // Clean out existing subscene if the node is not expanded.
222 tf_graph_scene.selectChild(nodeGroup, 'g', Class.Subscene.GROUP).remove();
223 }
224 return null;
225}
226/**
227 * Translate the subscene of the given node group
228 */

Callers 1

buildGroupFunction · 0.85

Calls 1

buildGroupForSceneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…