"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "3e1c7e4e06c9d0b9ed4125096c08bfdf0258b1f9"
Commit ff75c730 authored by Paul's avatar Paul
Browse files

Format

parent e91c8fc2
...@@ -163,9 +163,10 @@ struct compile_plan ...@@ -163,9 +163,10 @@ struct compile_plan
<< std::endl; << std::endl;
std::vector<double> times; std::vector<double> times;
times.reserve(results.size()); times.reserve(results.size());
std::transform(results.begin(), results.end(), std::back_inserter(times), [&](const auto& cr) { std::transform(
return time_op(*ctx, cr.replace.code_object, to_shapes(cr.ins->inputs()), 20).first; results.begin(), results.end(), std::back_inserter(times), [&](const auto& cr) {
}); return time_op(*ctx, cr.replace.code_object, to_shapes(cr.ins->inputs()), 20).first;
});
auto i = std::distance(times.begin(), std::min_element(times.begin(), times.end())); auto i = std::distance(times.begin(), std::min_element(times.begin(), times.end()));
pc.insert(preop.name(), config->problem, config->solutions.at(i)); pc.insert(preop.name(), config->problem, config->solutions.at(i));
return results[i]; return results[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment