| 151 | } |
| 152 | |
| 153 | bool MLGOHeuristics::check_all() const |
| 154 | { |
| 155 | // Tree validities are already checked and cached. |
| 156 | bool all_trees_are_checked = |
| 157 | std::find_if(_tree_valid.begin(), _tree_valid.end(), [](auto v) { return !v.second; }) == _tree_valid.end(); |
| 158 | if (!all_trees_are_checked) |
| 159 | { |
| 160 | ARM_COMPUTE_LOG_INFO_MSG_CORE("Missing checks on some trees. Make sure to call check_heuristic_tree after each " |
| 161 | "tree is completed. This could also indicate there are no trees in the dotmlgo"); |
| 162 | return false; |
| 163 | } |
| 164 | |
| 165 | // Other top level checks... |
| 166 | |
| 167 | return true; |
| 168 | } |
| 169 | |
| 170 | std::pair<bool, HeuristicTree *> MLGOHeuristics::get_heuristic_tree(HeuristicTree::TreeID id) |
| 171 | { |