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
a9b042f4
"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "b9b60ce34d96c98088a11bc0f7e0a516b8b732f4"
Commit
a9b042f4
authored
Nov 21, 2022
by
charlie
Browse files
Fix tests and parsing
parent
43708207
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/onnx/parse_matmul.cpp
src/onnx/parse_matmul.cpp
+1
-1
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+1
-1
No files found.
src/onnx/parse_matmul.cpp
View file @
a9b042f4
...
@@ -83,7 +83,7 @@ struct parse_matmul : op_parser<parse_matmul>
...
@@ -83,7 +83,7 @@ struct parse_matmul : op_parser<parse_matmul>
instruction_ref
dot_res
=
info
.
add_instruction
(
make_op
(
opd
.
op_name
),
a0
,
a1
);
instruction_ref
dot_res
=
info
.
add_instruction
(
make_op
(
opd
.
op_name
),
a0
,
a1
);
// squeeze the appended or prepended dimensions
// squeeze the appended or prepended dimensions
int64_t
num_axis
=
static_cast
<
int64_t
>
(
dot_res
->
get_shape
().
lens
().
size
());
int64_t
num_axis
=
static_cast
<
int64_t
>
(
dot_res
->
get_shape
().
ndim
());
if
(
is_a_prepended
)
if
(
is_a_prepended
)
{
{
dot_res
=
dot_res
=
...
...
test/onnx/onnx_test.cpp
View file @
a9b042f4
...
@@ -3352,7 +3352,7 @@ TEST_CASE(matmulinteger_dyn_error)
...
@@ -3352,7 +3352,7 @@ TEST_CASE(matmulinteger_dyn_error)
{
{
migraphx::onnx_options options;
migraphx::onnx_options options;
options.default_dyn_dim_value = {1, 4, 0};
options.default_dyn_dim_value = {1, 4, 0};
EXPECT
(
test
::
throws
([
&
]
{
migraphx
::
parse_onnx
(
"matmulinteger_dyn_error.onnx"
);
}));
EXPECT(test::throws([&] { migraphx::parse_onnx("matmulinteger_dyn_error.onnx"
, options
); }));
}
}
TEST_CASE(max_test)
TEST_CASE(max_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