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

Method GetArrayFor

tensorflow/compiler/xla/service/indexed_array_analysis.cc:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79StatusOr<Analysis::Array*> IndexedArrayAnalysis::GetArrayFor(
80 const HloInstruction* instr) {
81 auto it = cache_.find(instr);
82 if (it != cache_.end()) {
83 return it->second;
84 }
85
86 TF_RETURN_IF_ERROR(TraverseAndPopulateCache(instr));
87 return FindOrDie(cache_, instr);
88}
89
90Status IndexedArrayAnalysis::TraverseAndPopulateCache(
91 const HloInstruction* root) {

Callers 1

RunMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected