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
efac0323
"README_ORIGIN.md" did not exist on "dba48fb4102dae3bd9dbb7048fc6632cdfeb4274"
Commit
efac0323
authored
Mar 04, 2022
by
Shucai Xiao
Browse files
remove unnecessary code
parent
8a7e325c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/device/layernorm.cpp
src/targets/gpu/device/layernorm.cpp
+3
-3
No files found.
src/targets/gpu/device/layernorm.cpp
View file @
efac0323
...
...
@@ -186,9 +186,9 @@ auto layernorm_fusion(hipStream_t stream,
return
[
=
](
auto
input
,
auto
output
)
{
auto
relements
=
arg1
.
get_shape
().
lens
().
back
();
auto
nelements
=
result
.
get_shape
().
elements
()
/
relements
;
auto
output_shape
=
result
.
get_shape
();
auto
reduce_output_lens
(
output_shape
.
lens
());
reduce_output_lens
.
back
()
=
1
;
//
auto output_shape = result.get_shape();
//
auto reduce_output_lens(output_shape.lens());
//
reduce_output_lens.back() = 1;
if
((
relements
%
4
)
==
0
)
layernorm_vec_impl
<
4
>
(
...
...
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