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

Method get_heuristic_tree

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

Source from the content-addressed store, hash-verified

168}
169
170std::pair<bool, HeuristicTree *> MLGOHeuristics::get_heuristic_tree(HeuristicTree::TreeID id)
171{
172 if (_indices.find(id) == _indices.end())
173 {
174 ARM_COMPUTE_LOG_INFO_MSG_WITH_FORMAT_CORE("Cannot find tree with id %zu", id);
175 return std::make_pair(false, nullptr);
176 }
177 const auto index = _indices[id];
178
179 if (_trees.find(index) == _trees.end())
180 {
181 ARM_COMPUTE_LOG_INFO_MSG_CORE("Cannot find tree index");
182 return std::make_pair(false, nullptr);
183 }
184 auto &t = _trees[index];
185
186 return std::make_pair(true, &t);
187}
188
189bool MLGOHeuristics::add_heuristic_tree(HeuristicTree &&t)
190{

Callers 1

heuristic_treeFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected