-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Backward doesn't work on LSTM with sequence_length #15268
Comments
Hey, this is the MXNet Label Bot. |
@stephenrawls, any help with that? |
@mxnet-label-bot add [Bug, Gluon] |
I could reproduce this issue. Here is a full callstack. ubuntu@ip-172-31-31-181:~$ python lstm_test.py [1.0000387 2.0000887 3.000114 4.000115 5.000068 6.0000405 7. ] |
Looking at this now. |
I think I have a solution, at least I have tested locally and it appears to work. Just need to update unit tests and then I will file a PR. |
Thanks @Ishitori for the catch! |
I verified that the issue is fixed in the latest code. @lanking520 I would recommend closing this issue. |
Description
LSTM with out-of-the-box variable length was introduced in this PR. I tried to use it, and while the forward pass works well, the backward pass fails.
I provide minimum reproducible example. To my best knowledge, the backward pass is not covered with a unit test.
Environment info (Required)
The latest version with
--pre
Package used (Python/R/Scala/Julia):
Python
Error Message:
Minimum reproducible example
You have to use GPU to run it, as this feature is GPU only.
The devil is in the fact that the
backward
fails silently andmx.nd.waitall()
is necessary at the endThe text was updated successfully, but these errors were encountered: