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
599a67ee
Commit
599a67ee
authored
Sep 20, 2023
by
Umang Yadav
Browse files
rename to tols
parent
608e1ae0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/include/migraphx/verify.hpp
src/include/migraphx/verify.hpp
+2
-2
No files found.
src/include/migraphx/verify.hpp
View file @
599a67ee
...
...
@@ -226,13 +226,13 @@ struct tolerance
};
template
<
class
R1
,
class
R2
>
bool
allclose
(
const
R1
&
r1
,
const
R2
&
r2
,
tolerance
t
hre
s
)
bool
allclose
(
const
R1
&
r1
,
const
R2
&
r2
,
tolerance
t
ol
s
)
{
std
::
size_t
n
=
range_distance
(
r1
);
if
(
n
==
range_distance
(
r2
))
{
auto
idx
=
mismatch_idx
(
r1
,
r2
,
[
&
](
auto
x
,
auto
y
)
{
return
abs_diff
(
double
(
x
),
double
(
y
))
>
t
hre
s
.
atol
+
t
hre
s
.
rtol
*
std
::
abs
(
double
(
y
));
return
abs_diff
(
double
(
x
),
double
(
y
))
>
t
ol
s
.
atol
+
t
ol
s
.
rtol
*
std
::
abs
(
double
(
y
));
});
if
(
idx
<
range_distance
(
r1
))
{
...
...
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