| 143 | } |
| 144 | |
| 145 | struct 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 | |
| 157 | StateMap::StateMap(Graph* graph) { |
| 158 | node_to_condid_map_.resize(graph->num_node_ids()); |
no outgoing calls
no test coverage detected