"src/include/conv_common.hpp" did not exist on "7cdb665a50b32a7da7a6a74cd1f988c1225b04fa"
Commit dc2e2cf3 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 0adbc8d4
...@@ -1916,14 +1916,14 @@ TEST_CASE(round_test) ...@@ -1916,14 +1916,14 @@ TEST_CASE(round_test)
{ {
migraphx::program p; migraphx::program p;
migraphx::shape s{migraphx::shape::float_type, {9}}; migraphx::shape s{migraphx::shape::float_type, {9}};
auto l = p.add_literal( auto l = p.add_literal(migraphx::literal{s, {1.1, 1.5, 1.6, -1.1, -1.5, -1.6, 0.0, 2.0, -2.0}});
migraphx::literal{s, {1.1, 1.5, 1.6, -1.1, -1.5, -1.6, 0.0, 2.0, -2.0}});
p.add_instruction(migraphx::op::round{}, l); p.add_instruction(migraphx::op::round{}, l);
p.compile(migraphx::cpu::target{}); p.compile(migraphx::cpu::target{});
auto result = p.eval({}); auto result = p.eval({});
std::vector<float> results_vector; std::vector<float> results_vector;
result.visit([&](auto output) { results_vector.assign(output.begin(), output.end()); }); result.visit([&](auto output) { results_vector.assign(output.begin(), output.end()); });
for (auto v : results_vector) { for(auto v : results_vector)
{
std::cout << v << "\t"; std::cout << v << "\t";
} }
std::cout << std::endl; std::cout << std::endl;
...@@ -1931,5 +1931,4 @@ TEST_CASE(round_test) ...@@ -1931,5 +1931,4 @@ TEST_CASE(round_test)
EXPECT(migraphx::verify_range(results_vector, gold)); EXPECT(migraphx::verify_range(results_vector, gold));
} }
int main(int argc, const char* argv[]) { test::run(argc, argv); } int main(int argc, const char* argv[]) { test::run(argc, argv); }
...@@ -3625,7 +3625,7 @@ struct test_round : verify_program<test_round> ...@@ -3625,7 +3625,7 @@ struct test_round : verify_program<test_round>
{ {
migraphx::program p; migraphx::program p;
migraphx::shape s{migraphx::shape::float_type, {2, 3, 4, 6}}; migraphx::shape s{migraphx::shape::float_type, {2, 3, 4, 6}};
auto param = p.add_parameter("x", s); auto param = p.add_parameter("x", s);
p.add_instruction(migraphx::op::round{}, param); p.add_instruction(migraphx::op::round{}, param);
return p; return p;
} }
......
...@@ -1022,5 +1022,4 @@ TEST_CASE(round_test) ...@@ -1022,5 +1022,4 @@ TEST_CASE(round_test)
EXPECT(p == prog); EXPECT(p == prog);
} }
int main(int argc, const char* argv[]) { test::run(argc, argv); } int main(int argc, const char* argv[]) { test::run(argc, argv); }
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