Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c6ddbc45
Commit
c6ddbc45
authored
Oct 25, 2023
by
Brian Pickrell
Browse files
formatting and fix test broken by merge; use new migraphx::verify::verify_range_with_tolerance
parent
34c6a309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test/onnx/verify_onnx.cpp
test/onnx/verify_onnx.cpp
+5
-2
No files found.
test/onnx/verify_onnx.cpp
View file @
c6ddbc45
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <migraphx/verify.hpp>
#include <migraphx/verify.hpp>
#include <migraphx/onnx.hpp>
#include <migraphx/onnx.hpp>
#include <migraphx/half.hpp>
#include <migraphx/half.hpp>
#include <migraphx/verify.hpp>
#include "test.hpp"
#include "test.hpp"
TEST_CASE(averagepool_notset_test)
TEST_CASE(averagepool_notset_test)
...
@@ -1786,7 +1787,7 @@ TEST_CASE(resize_downsample_f_dyn_test)
...
@@ -1786,7 +1787,7 @@ TEST_CASE(resize_downsample_f_dyn_test)
72.1f, 73.1f, 75.1f, 76.1f, 78.1f};
72.1f, 73.1f, 75.1f, 76.1f, 78.1f};
// clang-format on
// clang-format on
EXPECT
(
migraphx
::
verify
::
verify_range
(
result_vector
,
gold
));
EXPECT(migraphx::verify::verify_range
_with_tolerance
(result_vector,
migraphx::verify::expected{
gold
}
));
}
}
TEST_CASE(resize_upsample_f_dyn_test)
TEST_CASE(resize_upsample_f_dyn_test)
...
@@ -1822,7 +1823,9 @@ TEST_CASE(resize_upsample_f_dyn_test)
...
@@ -1822,7 +1823,9 @@ TEST_CASE(resize_upsample_f_dyn_test)
25.1f, 25.1f, 26.1f, 27.1f, 27.1f, 28.1f, 29.1f, 29.1f};
25.1f, 25.1f, 26.1f, 27.1f, 27.1f, 28.1f, 29.1f, 29.1f};
// clang-format on
// clang-format on
EXPECT
(
migraphx
::
verify
::
verify_range
(
result_vector
,
gold
));
// Using verify_range_with_tolerance() because floating-point
// rounding errorswere observed.
EXPECT(migraphx::verify::verify_range_with_tolerance(result_vector, migraphx::verify::expected{gold}));
}
}
TEST_CASE(resize_upsample_linear_ac_test)
TEST_CASE(resize_upsample_linear_ac_test)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment