Skip to content

Commit

Permalink
fix: encountered nullptr in RNN
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhengning committed Apr 27, 2022
1 parent 0280f14 commit 34740f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/jittor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************

__version__ = '1.3.3.12'
__version__ = '1.3.3.13'
from jittor_utils import lock
with lock.lock_scope():
ori_int = int
Expand Down
1 change: 1 addition & 0 deletions python/jittor/extern/cuda/cudnn/ops/cudnn_rnn_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ void CudnnRnnOp::grads(Var** dout, VarPtr* dins) {
VarPtr dy = dout[0];
VarPtr dhy = dout[1];
VarPtr dcy = cx ? dout[2] : nullptr;
if (!dy.ptr) dy = make_number(0.0, y);
if (!dhy.ptr) dhy = make_number(0.0, hy);
if (!dcy.ptr && cx) dcy = make_number(0.0, cy);

Expand Down

0 comments on commit 34740f9

Please sign in to comment.