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
b745f416
Commit
b745f416
authored
May 20, 2022
by
turneram
Browse files
Formatting
parent
a16adb42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/targets/gpu/jit/bert_transpose.cpp
src/targets/gpu/jit/bert_transpose.cpp
+2
-4
No files found.
src/targets/gpu/jit/bert_transpose.cpp
View file @
b745f416
...
@@ -41,8 +41,7 @@ struct transposectx_compiler : compiler<transposectx_compiler>
...
@@ -41,8 +41,7 @@ struct transposectx_compiler : compiler<transposectx_compiler>
{
{
hip_compile_options
options
;
hip_compile_options
options
;
auto
h
=
inputs
.
front
().
lens
().
back
();
auto
h
=
inputs
.
front
().
lens
().
back
();
options
.
set_launch_params
(
options
.
set_launch_params
(
v
,
compute_global_for
(
ctx
,
inputs
.
back
().
elements
(),
h
),
h
);
v
,
compute_global_for
(
ctx
,
inputs
.
back
().
elements
(),
h
),
h
);
options
.
output
=
inputs
.
back
();
options
.
output
=
inputs
.
back
();
options
.
inputs
=
inputs
;
options
.
inputs
=
inputs
;
options
.
kernel_name
=
"transposectx_kernel"
;
options
.
kernel_name
=
"transposectx_kernel"
;
...
@@ -81,8 +80,7 @@ struct transposeqkv_compiler : compiler<transposeqkv_compiler>
...
@@ -81,8 +80,7 @@ struct transposeqkv_compiler : compiler<transposeqkv_compiler>
{
{
hip_compile_options
options
;
hip_compile_options
options
;
auto
h
=
inputs
.
front
().
lens
().
back
();
auto
h
=
inputs
.
front
().
lens
().
back
();
options
.
set_launch_params
(
options
.
set_launch_params
(
v
,
compute_global_for
(
ctx
,
inputs
.
back
().
elements
(),
h
),
h
);
v
,
compute_global_for
(
ctx
,
inputs
.
back
().
elements
(),
h
),
h
);
options
.
output
=
inputs
.
back
();
options
.
output
=
inputs
.
back
();
options
.
inputs
=
inputs
;
options
.
inputs
=
inputs
;
options
.
kernel_name
=
"transposeqkv_kernel"
;
options
.
kernel_name
=
"transposeqkv_kernel"
;
...
...
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