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
fbe13c96
Commit
fbe13c96
authored
Oct 11, 2022
by
charlie
Browse files
Fix sinh_dynamic onnx test
parent
8c4ae897
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+2
-7
No files found.
test/onnx/onnx_test.cpp
View file @
fbe13c96
...
...
@@ -5222,17 +5222,12 @@ TEST_CASE(sinh_dynamic_test)
std::vector<migraphx::shape::dynamic_dimension> dyn_dims;
dyn_dims.push_back(dd);
auto input = mm->add_parameter("x", migraphx::shape{migraphx::shape::float_type, dyn_dims});
mm
->
add_instruction
(
migraphx
::
make_op
(
"sinh"
),
input
);
auto ret = mm->add_instruction(migraphx::make_op("sinh"), input);
mm->add_return({ret});
migraphx::onnx_options options;
options.default_dyn_dim_value = dd;
auto prog = parse_onnx("sinh_dynamic_test.onnx", options);
auto
*
mm_onnx
=
prog
.
get_main_module
();
auto
last_ins
=
std
::
prev
(
mm_onnx
->
end
());
if
(
last_ins
->
name
()
==
"@return"
)
{
mm
->
remove_instruction
(
last_ins
);
}
EXPECT(p == prog);
}
...
...
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