Commit c1d677b0 authored by Umang Yadav's avatar Umang Yadav
Browse files

fix ci checks

parent 599a67ee
...@@ -32,8 +32,8 @@ namespace migraphx { ...@@ -32,8 +32,8 @@ namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS { inline namespace MIGRAPHX_INLINE_NS {
MIGRAPHX_EXPORT bool verify_args_with_threshold(const std::string& name, MIGRAPHX_EXPORT bool verify_args_with_threshold(const std::string& name,
const argument& ref_arg,
const argument& target_arg, const argument& target_arg,
const argument& ref_arg,
verify::tolerance); verify::tolerance);
MIGRAPHX_EXPORT bool verify_args(const std::string& name, MIGRAPHX_EXPORT bool verify_args(const std::string& name,
......
...@@ -92,7 +92,7 @@ TEST_CASE(im2col_3x3_no_pad_test) ...@@ -92,7 +92,7 @@ TEST_CASE(im2col_3x3_no_pad_test)
auto result = p.eval({}).back(); auto result = p.eval({}).back();
std::vector<int> gold = {0, 1, 2, 4, 5, 6, 8, 9, 10, 1, 2, 3, 5, 6, 7, 9, 10, 11, std::vector<int> gold = {0, 1, 2, 4, 5, 6, 8, 9, 10, 1, 2, 3, 5, 6, 7, 9, 10, 11,
4, 5, 6, 8, 9, 10, 12, 13, 14, 5, 6, 7, 9, 10, 11, 13, 14, 15}; 4, 5, 6, 8, 9, 10, 12, 13, 14, 5, 6, 7, 9, 10, 11, 13, 14, 15};
std::size_t col_height = (size[0] - f[0] + 2 * padding[0]) / stride[0] + 1; std::size_t col_height = (size[0] - f[0] + 2 * padding[0]) / stride[0] + 1;
std::size_t col_width = (size[1] - f[1] + 2 * padding[1]) / stride[1] + 1; std::size_t col_width = (size[1] - f[1] + 2 * padding[1]) / stride[1] + 1;
......
...@@ -48,21 +48,21 @@ TEST_CASE(quant_conv2d_padding_stride_test) ...@@ -48,21 +48,21 @@ TEST_CASE(quant_conv2d_padding_stride_test)
auto result = p.eval({}).back(); auto result = p.eval({}).back();
std::vector<int32_t> gold = {4521, std::vector<int32_t> gold = {4521,
7014, 7014,
7830, 7830,
11952, 11952,
10515, 10515,
16734, 16734,
19737, 19737,
30906, 30906,
13161, 13161,
19542, 19542,
19494, 19494,
28800, 28800,
34707, 34707,
52590, 52590,
54729, 54729,
82746}; 82746};
std::vector<int32_t> results_vector; std::vector<int32_t> results_vector;
result.visit([&](auto output) { results_vector.assign(output.begin(), output.end()); }); result.visit([&](auto output) { results_vector.assign(output.begin(), output.end()); });
EXPECT(migraphx::verify::verify_range(results_vector, gold)); EXPECT(migraphx::verify::verify_range(results_vector, gold));
......
...@@ -151,21 +151,21 @@ TEST_CASE(handling_tensors) ...@@ -151,21 +151,21 @@ TEST_CASE(handling_tensors)
result.visit([&](auto output) { results_vector.assign(output.begin(), output.end()); }); result.visit([&](auto output) { results_vector.assign(output.begin(), output.end()); });
// Solution vector // Solution vector
std::vector<float> gold = {-0.20817225, std::vector<float> gold = {-0.20817225,
0.87965256, 0.87965256,
0.14958936, 0.14958936,
-1.24887264, -1.24887264,
-0.06540672, -0.06540672,
0.20778663, 0.20778663,
0.40456355, 0.40456355,
-0.99900877, -0.99900877,
0.4917807, 0.4917807,
0.1994698, 0.1994698,
0.64205718, 0.64205718,
0.37798831, 0.37798831,
-0.25315839, -0.25315839,
0.44276932, 0.44276932,
-0.16138598, -0.16138598,
0.79344082}; 0.79344082};
EXPECT(migraphx::verify::verify_range(results_vector, gold)); EXPECT(migraphx::verify::verify_range(results_vector, gold));
} }
......
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