Commit 1f7df091 authored by Paul's avatar Paul
Browse files

Formatting

parent 3b184cb8
......@@ -93,13 +93,13 @@ void verify_instructions(const migraph::program& prog, double tolerance = 80)
}
}
template<class F>
template <class F>
void verify_reduced(F f, int n, double tolerance = 80)
{
auto create_program = [&] {
migraph::program p = f();
auto last = std::prev(p.end(), n+1);
auto last = std::prev(p.end(), n + 1);
p.remove_instructions(last, p.end());
return p;
};
......@@ -108,12 +108,12 @@ void verify_reduced(F f, int n, double tolerance = 80)
verify_program(std::to_string(n), create_program, tolerance);
}
template<class F>
template <class F>
void verify_reduced_program(F f, double tolerance = 80)
{
migraph::program p = f();
auto n = std::distance(p.begin(), p.end());
for(int i=0;i<n;i++)
auto n = std::distance(p.begin(), p.end());
for(int i = 0; i < n; i++)
{
verify_reduced(f, i, tolerance);
}
......
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