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

Method AddNode

tensorflow/core/profiler/internal/tfprof_op.cc:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82} // namespace
83
84void TFOp::AddNode(TFGraphNode* node) {
85 const string& op = node->op();
86 if (tfcnodes_map_.find(op) == tfcnodes_map_.end()) {
87 tfcnodes_map_[op] =
88 std::unique_ptr<TFMultiGraphNode>(new TFMultiGraphNode(op));
89 }
90 TFMultiGraphNode* tfcnode = tfcnodes_map_[op].get();
91 tfcnode->AddGraphNode(node);
92}
93
94void TFOp::Build() {
95 for (auto& tn : tfcnodes_map_) {

Callers 1

BuildViewMethod · 0.45

Calls 5

AddGraphNodeMethod · 0.80
opMethod · 0.45
findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected