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
5b399aef
Commit
5b399aef
authored
Jan 06, 2023
by
charlie
Browse files
Simplify perm
parent
3a18ebfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/onnx/parse_gemm.cpp
src/onnx/parse_gemm.cpp
+2
-6
No files found.
src/onnx/parse_gemm.cpp
View file @
5b399aef
...
...
@@ -69,12 +69,8 @@ struct parse_gemm : op_parser<parse_gemm>
trans_b
=
parser
.
parse_value
(
info
.
attributes
.
at
(
"transB"
)).
at
<
bool
>
();
}
std
::
vector
<
int64_t
>
perm
=
{
0
,
1
};
// swap the last two elements
std
::
swap
(
*
perm
.
rbegin
(),
*
(
perm
.
rbegin
()
+
1
));
auto
dot_type
=
a_arg
->
get_shape
().
type
();
std
::
vector
<
int64_t
>
perm
=
{
1
,
0
};
auto
dot_type
=
a_arg
->
get_shape
().
type
();
if
(
alpha
!=
1.0
f
)
{
auto
alpha_literal
=
info
.
add_literal
(
alpha
);
...
...
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