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

Method Run

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

Source from the content-addressed store, hash-verified

1146}
1147
1148StatusOr<bool> IndexedArrayAnalysisPrinterPass::Run(HloModule* module) {
1149 if (!VLOG_IS_ON(2)) {
1150 return false;
1151 }
1152
1153 IndexedArrayAnalysis analysis;
1154 for (auto* computation : module->MakeNonfusionComputations()) {
1155 for (auto* instr : computation->instructions()) {
1156 TF_ASSIGN_OR_RETURN(Analysis::Array * t, analysis.GetArrayFor(instr));
1157 if (!dynamic_cast<UnknownArray*>(t) && !dynamic_cast<ConstantArray*>(t)) {
1158 VLOG(2) << instr->ToString() << " -> " << analysis.ToString(t);
1159 }
1160 }
1161 }
1162
1163 return false;
1164}
1165
1166} // namespace xla

Callers

nothing calls this directly

Calls 5

instructionsMethod · 0.80
GetArrayForMethod · 0.80
TF_ASSIGN_OR_RETURNFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected