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
2a8c4f49
Commit
2a8c4f49
authored
Jul 13, 2023
by
Paul
Browse files
Format
parent
24359d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/permutation.cpp
src/permutation.cpp
+1
-1
No files found.
src/permutation.cpp
View file @
2a8c4f49
...
@@ -77,7 +77,7 @@ std::vector<int64_t> find_permutation(const std::vector<shape>& shapes)
...
@@ -77,7 +77,7 @@ std::vector<int64_t> find_permutation(const std::vector<shape>& shapes)
std
::
vector
<
shape
>
normalize_permutation
(
const
std
::
vector
<
shape
>&
shapes
)
std
::
vector
<
shape
>
normalize_permutation
(
const
std
::
vector
<
shape
>&
shapes
)
{
{
auto
result
=
shapes
;
auto
result
=
shapes
;
auto
perm
=
find_permutation
(
shapes
);
auto
perm
=
find_permutation
(
shapes
);
std
::
transform
(
result
.
begin
(),
result
.
end
(),
result
.
begin
(),
[
&
](
auto
s
)
{
std
::
transform
(
result
.
begin
(),
result
.
end
(),
result
.
begin
(),
[
&
](
auto
s
)
{
return
reorder_shape
(
s
,
perm
);
return
reorder_shape
(
s
,
perm
);
});
});
...
...
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