Commit 8068c5a6 authored by Paul's avatar Paul
Browse files

Formatting

parent 5775b579
...@@ -318,17 +318,19 @@ argument generic_eval(const program& p, ...@@ -318,17 +318,19 @@ argument generic_eval(const program& p,
argument program::eval(std::unordered_map<std::string, argument> params) const argument program::eval(std::unordered_map<std::string, argument> params) const
{ {
if(enabled(MIGRAPH_TRACE_EVAL{})) { if(enabled(MIGRAPH_TRACE_EVAL{}))
{
auto& ctx = this->impl->ctx; auto& ctx = this->impl->ctx;
return generic_eval(*this, this->impl->ctx, std::move(params), [&](auto& ins, auto f) { return generic_eval(*this, this->impl->ctx, std::move(params), [&](auto& ins, auto f) {
ctx.finish(); ctx.finish();
std::cout << "Run instruction: " << ins->name() << std::endl; std::cout << "Run instruction: " << ins->name() << std::endl;
return f(); return f();
}); });
}
} else { else
return generic_eval(*this, this->impl->ctx, std::move(params), [](auto&, auto f) { return f(); }); {
return generic_eval(
*this, this->impl->ctx, std::move(params), [](auto&, auto f) { return f(); });
} }
} }
......
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