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

Method IsFlattened

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

Source from the content-addressed store, hash-verified

354}
355
356bool CallGraph::IsFlattened() const {
357 for (const CallGraphNode& node : nodes_) {
358 if (node.context() == CallContext::kBoth) {
359 return false;
360 }
361 if (node.context() == CallContext::kSequential &&
362 node.caller_callsites().size() > 1) {
363 return false;
364 }
365 }
366 return true;
367}
368
369std::vector<HloInstruction*> CallGraph::GetComputationCallers(
370 HloComputation* c) {

Callers 2

TEST_FFunction · 0.80
RunMethod · 0.80

Calls 2

contextMethod · 0.45
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64