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
d505eecb
Commit
d505eecb
authored
Sep 20, 2023
by
Umang Yadav
Browse files
mark constructor as explicit
parent
2e9e34a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
src/driver/verify.cpp
src/driver/verify.cpp
+1
-1
src/include/migraphx/verify.hpp
src/include/migraphx/verify.hpp
+1
-1
test/gpu/mlir.cpp
test/gpu/mlir.cpp
+2
-1
test/verify/run_verify.cpp
test/verify/run_verify.cpp
+2
-1
No files found.
src/driver/verify.cpp
View file @
d505eecb
...
@@ -84,7 +84,7 @@ void verify_program(const std::string& name,
...
@@ -84,7 +84,7 @@ void verify_program(const std::string& name,
std
::
size_t
output_num
=
ref_outs
.
size
();
std
::
size_t
output_num
=
ref_outs
.
size
();
for
(
std
::
size_t
i
=
0
;
i
<
output_num
;
++
i
)
for
(
std
::
size_t
i
=
0
;
i
<
output_num
;
++
i
)
{
{
verify_args_with_threshold
(
name
,
target_outs
[
i
],
ref_outs
[
i
],
tols
);
verify_args_with_threshold
(
name
,
target_outs
[
i
],
verify
::
expected
{
ref_outs
[
i
]
}
,
tols
);
}
}
}
}
...
...
src/include/migraphx/verify.hpp
View file @
d505eecb
...
@@ -203,7 +203,7 @@ template <class T>
...
@@ -203,7 +203,7 @@ template <class T>
struct
expected
struct
expected
{
{
expected
()
=
default
;
expected
()
=
default
;
expected
(
const
T
&
input
)
:
x
(
&
input
)
{}
explicit
expected
(
const
T
&
input
)
:
x
(
&
input
)
{}
const
T
&
data
()
const
const
T
&
data
()
const
{
{
assert
(
x
!=
nullptr
);
assert
(
x
!=
nullptr
);
...
...
test/gpu/mlir.cpp
View file @
d505eecb
...
@@ -133,7 +133,8 @@ bool verify_mlir(const migraphx::module& mmlir)
...
@@ -133,7 +133,8 @@ bool verify_mlir(const migraphx::module& mmlir)
auto
inputs
=
generate_params
(
ref
);
auto
inputs
=
generate_params
(
ref
);
auto
mlir
=
create_program_from_mlir
(
mmlir
);
auto
mlir
=
create_program_from_mlir
(
mmlir
);
return
migraphx
::
verify_args
(
"mlir"
,
run_gpu
(
mlir
,
inputs
),
run_ref
(
ref
,
inputs
));
return
migraphx
::
verify_args
(
"mlir"
,
run_gpu
(
mlir
,
inputs
),
migraphx
::
verify
::
expected
{
run_ref
(
ref
,
inputs
)});
}
}
TEST_CASE
(
conv
)
TEST_CASE
(
conv
)
...
...
test/verify/run_verify.cpp
View file @
d505eecb
...
@@ -251,7 +251,8 @@ void run_verify::verify(const std::string& name,
...
@@ -251,7 +251,8 @@ void run_verify::verify(const std::string& name,
std
::
size_t
num
=
gold
.
size
();
std
::
size_t
num
=
gold
.
size
();
for
(
std
::
size_t
i
=
0
;
((
i
<
num
)
and
passed
);
++
i
)
for
(
std
::
size_t
i
=
0
;
((
i
<
num
)
and
passed
);
++
i
)
{
{
passed
&=
migraphx
::
verify_args
(
tname
,
result
[
i
],
gold
[
i
]);
passed
&=
migraphx
::
verify_args
(
tname
,
result
[
i
],
migraphx
::
verify
::
expected
{
gold
[
i
]});
}
}
if
(
not
passed
or
migraphx
::
enabled
(
MIGRAPHX_TRACE_TEST
{}))
if
(
not
passed
or
migraphx
::
enabled
(
MIGRAPHX_TRACE_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