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
56615a84
"example/38_permute/common.hpp" did not exist on "e294c6756b9d9f6aa5038a3e8c42bbc61e4c97bd"
Commit
56615a84
authored
Jul 07, 2022
by
Paul
Browse files
Set perm instead of reorder
parent
ed53d437
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/targets/gpu/gemm_impl.cpp
src/targets/gpu/gemm_impl.cpp
+1
-1
No files found.
src/targets/gpu/gemm_impl.cpp
View file @
56615a84
...
@@ -78,7 +78,7 @@ shape transpose_batch(const shape& s, unsigned trans_batch)
...
@@ -78,7 +78,7 @@ shape transpose_batch(const shape& s, unsigned trans_batch)
std
::
vector
<
int64_t
>
perm
(
s
.
lens
().
size
());
std
::
vector
<
int64_t
>
perm
(
s
.
lens
().
size
());
std
::
iota
(
perm
.
begin
(),
perm
.
end
(),
0
);
std
::
iota
(
perm
.
begin
(),
perm
.
end
(),
0
);
std
::
swap
(
perm
[
batch
],
perm
[
batch
+
trans_batch
]);
std
::
swap
(
perm
[
batch
],
perm
[
batch
+
trans_batch
]);
return
reorder_shape
(
s
,
perm
);
return
shape
::
from_permutation
(
s
.
type
(),
s
.
lens
()
,
perm
);
}
}
template
<
class
R
,
class
...
Ts
,
class
...
Us
>
template
<
class
R
,
class
...
Ts
,
class
...
Us
>
...
...
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