MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AddNode

Method AddNode

tensorflow/core/grappler/mutable_graph_view.cc:438–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438NodeDef* MutableGraphView::AddNode(NodeDef&& node) {
439 auto* node_in_graph = graph()->add_node();
440 *node_in_graph = std::move(node);
441
442 AddUniqueNodeOrDie(node_in_graph);
443
444 AddAndDedupFanouts(node_in_graph);
445 return node_in_graph;
446}
447
448Status MutableGraphView::AddSubgraph(GraphDef&& subgraph) {
449 // 1. Add all new functions and check that functions with the same name

Callers

nothing calls this directly

Calls 1

graphFunction · 0.85

Tested by

no test coverage detected