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

Method AddCallerCallSite

tensorflow/compiler/xla/service/call_graph.cc:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98std::string CallGraphNode::ToString() const { return computation_->name(); }
99
100void CallGraphNode::AddCallerCallSite(const CallSite& caller_callsite) {
101 caller_callsites_.push_back(caller_callsite);
102 HloComputation* caller = caller_callsite.instruction()->parent();
103 if (!ContainsKey(caller_set_, caller)) {
104 callers_.push_back(caller);
105 caller_set_.insert(caller);
106 }
107}
108
109void CallGraphNode::AddCallSiteForInstruction(HloInstruction* instruction) {
110 CHECK_EQ(instruction->parent(), computation());

Callers 1

BuildMethod · 0.80

Calls 5

ContainsKeyFunction · 0.85
push_backMethod · 0.45
parentMethod · 0.45
instructionMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected