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
24626f8f
Commit
24626f8f
authored
Oct 03, 2022
by
charlie
Browse files
Revert "Fix onnx_test"
This reverts commit
0b6ce109
.
parent
58ef773a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+8
-2
No files found.
test/onnx/onnx_test.cpp
View file @
24626f8f
...
...
@@ -5222,12 +5222,18 @@ 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});
auto
ret
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"sinh"
),
input
);
mm
->
add_return
({
ret
});
mm->add_instruction(migraphx::make_op("sinh"), input);
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