MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / check_all

Method check_all

src/runtime/CL/mlgo/MLGOHeuristics.cpp:153–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153bool 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
170std::pair<bool, HeuristicTree *> MLGOHeuristics::get_heuristic_tree(HeuristicTree::TreeID id)
171{

Callers 1

mlgoFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected