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

Method FindBranchOf

tensorflow/compiler/tf2xla/functionalize_cond.cc:1009–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009BranchType StateMap::FindBranchOf(CondId id, OutputTensor predicate) const {
1010 if (IsEmpty(id)) return BranchType::kNeither;
1011 const CondState& nodes = *id;
1012 auto it = nodes.find(predicate);
1013 if (it == nodes.end()) return BranchType::kNeither;
1014 return it->second;
1015}
1016
1017StatusOr<StateMap::CondId> FunctionalizeCond::JoinCondStatesNonMerge(
1018 StateMap::CondId src, StateMap::CondId dst) {

Callers 2

ExtractBodiesMethod · 0.80
RemoveRedundantSwitchMethod · 0.80

Calls 3

IsEmptyFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected