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
31b55797
Commit
31b55797
authored
Sep 19, 2023
by
Umang Yadav
Browse files
add flip overload
parent
78b8f79b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/include/migraphx/verify.hpp
src/include/migraphx/verify.hpp
+11
-0
No files found.
src/include/migraphx/verify.hpp
View file @
31b55797
...
...
@@ -239,6 +239,17 @@ bool verify_range_with_threshold(const R1& r1,
return
error
<=
threshold
;
}
// expected argument should be passed as second, but if it is passed as the first by mistake then
// flip the order
template
<
class
R1
,
class
R2
>
bool
verify_range_with_threshold
(
const
expected
<
R1
>&
r1
,
const
R2
&
r2
,
double
threshold
,
double
*
out_error
=
nullptr
)
{
return
verify_range
(
r2
,
r1
,
threshold
,
out_error
);
}
}
// namespace verify
}
// namespace MIGRAPHX_INLINE_NS
}
// namespace migraphx
...
...
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