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
3a18ebfd
Commit
3a18ebfd
authored
Jan 05, 2023
by
charlie
Browse files
Simplify constant iota
parent
58d151ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/onnx/parse_gemm.cpp
src/onnx/parse_gemm.cpp
+1
-2
No files found.
src/onnx/parse_gemm.cpp
View file @
3a18ebfd
...
...
@@ -69,8 +69,7 @@ struct parse_gemm : op_parser<parse_gemm>
trans_b
=
parser
.
parse_value
(
info
.
attributes
.
at
(
"transB"
)).
at
<
bool
>
();
}
std
::
vector
<
int64_t
>
perm
(
2
);
std
::
iota
(
perm
.
begin
(),
perm
.
end
(),
int64_t
{
0
});
std
::
vector
<
int64_t
>
perm
=
{
0
,
1
};
// swap the last two elements
std
::
swap
(
*
perm
.
rbegin
(),
*
(
perm
.
rbegin
()
+
1
));
...
...
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