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

Function FindUniqueBackedge

tensorflow/compiler/jit/deadness_analysis.cc:997–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997Status FindUniqueBackedge(Node* merge, const Edge** result) {
998 *result = nullptr;
999 CHECK(merge->IsMerge());
1000 for (const Edge* e : merge->in_edges()) {
1001 if (e->src()->IsNextIteration()) {
1002 if (*result != nullptr) {
1003 return CreateMultipleNextIterationInputsError(merge);
1004 }
1005 *result = e;
1006 }
1007 }
1008 return Status::OK();
1009}
1010
1011// If `backedge_predicate` is equal to `symbolic_predicate` & Step where Step
1012// does not contain `symbolic_predicate` as an inner (not top-level) operand

Callers 2

HandleMergeMethod · 0.85
PopulateFrameMethod · 0.85

Calls 4

IsMergeMethod · 0.80
IsNextIterationMethod · 0.80
srcMethod · 0.45

Tested by

no test coverage detected