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

Class CondStateLess

tensorflow/compiler/tf2xla/functionalize_cond.cc:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145struct CondStateLess {
146 bool operator()(const StateMap::CondState::value_type& lhs,
147 const StateMap::CondState::value_type& rhs) const {
148 if (StateMap::OutputTensorLess().operator()(lhs.first, rhs.first))
149 return true;
150 if (lhs.first.node->id() == rhs.first.node->id() &&
151 lhs.first.index == rhs.first.index)
152 return lhs.second < rhs.second;
153 return false;
154 }
155};
156
157StateMap::StateMap(Graph* graph) {
158 node_to_condid_map_.resize(graph->num_node_ids());

Callers 2

ExtractBodiesMethod · 0.85
JoinCondStatesMergeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected