Conversation
There are two parts: - Optional tensors cannot be dispatch tensors because dispatch tensors cannot be optional. - While the kernel dealt with undefined grad_outs, the logistics around it did not fully accomodate grad_hy being undefined. Fixes: pytorch#11800 Thank you, @mttk for the reproduction!
|
Needless to say, I'd be happy to split the PR into two parts if you think they're too unrelated. |
|
Nice! Is it possible to add a test for this? |
|
how about
|
|
Feel free to delete the comment above |
|
The failure is: I'd say not just in CircleCI... |
facebook-github-bot
left a comment
There was a problem hiding this comment.
apaszke has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: There are two parts: - Optional tensors cannot be dispatch tensors because dispatch tensors cannot be optional. - While the kernel dealt with undefined grad_outs, the logistics around it did not fully accomodate grad_hy being undefined. Fixes: #11800 Thank you, mttk for the reproduction! Pull Request resolved: pytorch/pytorch#11872 Differential Revision: D9978527 Pulled By: apaszke fbshipit-source-id: e622c288d2eac93bd8388e141fb773f2588e2b8f
Summary: There are two parts: - Optional tensors cannot be dispatch tensors because dispatch tensors cannot be optional. - While the kernel dealt with undefined grad_outs, the logistics around it did not fully accomodate grad_hy being undefined. Fixes: pytorch#11800 Thank you, mttk for the reproduction! Pull Request resolved: pytorch#11872 Differential Revision: D9978527 Pulled By: apaszke fbshipit-source-id: e622c288d2eac93bd8388e141fb773f2588e2b8f
There are two parts:
tensors cannot be optional.
around it did not fully accomodate grad_hy being undefined.
Fixes: #11800
Thank you, @mttk for the reproduction!