-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[decompositions] add decomposition for RNN with packed sequence #91281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/91281
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit 727ab58: NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
if reverse: | ||
step_output.reverse() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit confused about what's going on here. Why is this necessary for LSTM? (It isn't in the RNN decomp). If it is necessary, then should this be in the previous PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah so what's happening here is that all the decompositions are using _rnn_helper
But that was baking in an assumption that this was going to be a tensor. This basically replaces L2141 because I didn't really think ahead to PackedSequences when I was doing this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out, I missed that line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, PackedSequence is wild. Would prefer some more test cases (e.g. batch_size > 2). Also It would be good to actually compute the per sample grads and do the comparison instead of the smoke test (I'm not sure how much work this is, if you don't have bandwidth then please file an issue and we'll get to it)
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
We need someone else to shepherd this right |
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
…uence" [ghstack-poisoned]
Stack from ghstack (oldest at bottom):