"integration-tests/models/test_flash_mixtral_awq.py" did not exist on "93a7042d7e7b40ef204b8752dc817c6fe192a825"
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) ...@@ -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) void verify_reduced(F f, int n, double tolerance = 80)
{ {
auto create_program = [&] { auto create_program = [&] {
migraph::program p = f(); 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()); p.remove_instructions(last, p.end());
return p; return p;
}; };
...@@ -108,12 +108,12 @@ void verify_reduced(F f, int n, double tolerance = 80) ...@@ -108,12 +108,12 @@ void verify_reduced(F f, int n, double tolerance = 80)
verify_program(std::to_string(n), create_program, tolerance); verify_program(std::to_string(n), create_program, tolerance);
} }
template<class F> template <class F>
void verify_reduced_program(F f, double tolerance = 80) void verify_reduced_program(F f, double tolerance = 80)
{ {
migraph::program p = f(); migraph::program p = f();
auto n = std::distance(p.begin(), p.end()); auto n = std::distance(p.begin(), p.end());
for(int i=0;i<n;i++) for(int i = 0; i < n; i++)
{ {
verify_reduced(f, i, tolerance); 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