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
abe2a889
Commit
abe2a889
authored
Mar 09, 2022
by
Shucai Xiao
Browse files
clang format
parent
65386ce5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/targets/gpu/device/softmax.cpp
src/targets/gpu/device/softmax.cpp
+1
-1
No files found.
src/targets/gpu/device/softmax.cpp
View file @
abe2a889
...
@@ -160,7 +160,7 @@ void softmax(hipStream_t stream, const argument& result, const argument& arg, in
...
@@ -160,7 +160,7 @@ void softmax(hipStream_t stream, const argument& result, const argument& arg, in
auto
half2_block_size
=
compute_block_size
(
batch_item_num
,
1024
);
auto
half2_block_size
=
compute_block_size
(
batch_item_num
,
1024
);
int
block_num
=
batch_shape
.
elements
();
int
block_num
=
batch_shape
.
elements
();
int
shared_size
=
batch_item_num
*
2
*
result
.
get_shape
().
type_size
();
int
shared_size
=
batch_item_num
*
2
*
result
.
get_shape
().
type_size
();
half2_block_size
=
half2_block_size
/
4
;
half2_block_size
=
half2_block_size
/
4
;
softmax_kernel
<<<
block_num
,
half2_block_size
,
shared_size
,
stream
>>>
(
softmax_kernel
<<<
block_num
,
half2_block_size
,
shared_size
,
stream
>>>
(
arg
.
data
(),
batch_item_num
,
half2_block_size
,
result
.
data
());
arg
.
data
(),
batch_item_num
,
half2_block_size
,
result
.
data
());
}
}
...
...
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