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
OpenDAS
Paddle
Commits
e9128480
Commit
e9128480
authored
Oct 17, 2023
by
“yuguo”
Browse files
fix rnn op bug
parent
992bec46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
paddle/phi/kernels/gpu/rnn_functor.h
paddle/phi/kernels/gpu/rnn_functor.h
+2
-2
No files found.
paddle/phi/kernels/gpu/rnn_functor.h
View file @
e9128480
...
...
@@ -99,7 +99,7 @@ class RNNDescriptors {
// ------------------- cudnn dropout descriptors ---------------------
size_t
state_size
;
bool
is_initialized
=
dropout_state
->
initialized
();
if
(
!
is_test_
&&
!
is_initialized
)
{
if
(
!
is_initialized
)
{
#ifdef PADDLE_WITH_HIP
PADDLE_ENFORCE_GPU_SUCCESS
(
phi
::
dynload
::
miopenDropoutGetStatesSize
(
handle
,
&
state_size
));
...
...
@@ -114,7 +114,7 @@ class RNNDescriptors {
dev_ctx
.
GetPlace
(),
is_initialized
,
dropout_prob_
,
is_test_
?
nullptr
:
dropout_state
,
dropout_state
,
seed_
,
state_size
);
...
...
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