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
89dfc4dd
Commit
89dfc4dd
authored
Jun 25, 2019
by
Shucai Xiao
Browse files
fixed a bug in the gpu implementation of logsoftmax.
parent
7804a412
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/targets/gpu/device/logsoftmax.cpp
src/targets/gpu/device/logsoftmax.cpp
+1
-1
No files found.
src/targets/gpu/device/logsoftmax.cpp
View file @
89dfc4dd
...
...
@@ -31,7 +31,7 @@ void logsoftmax(hipStream_t stream, const argument& result, const argument& arg,
// use one block for items in one batch.
const
size_t
max_block_size
=
1024
;
size_t
block_size
=
1
;
while
(
block_size
<
max_block_size
and
block_size
<
n_di
m
)
while
(
block_size
<
max_block_size
and
block_size
<
batch_item_nu
m
)
{
block_size
*=
2
;
}
...
...
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