Skip to content

Conversation

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 21, 2022

🔗 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 Failures

As of commit 727ab58:

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

samdow pushed a commit that referenced this pull request Dec 21, 2022
@albanD albanD removed their request for review January 11, 2023 16:55
Comment on lines +2376 to +2378
if reverse:
step_output.reverse()

Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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

@samdow samdow added the topic: not user facing topic category label Jan 11, 2023
Copy link
Contributor

@zou3519 zou3519 left a 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)

@samdow samdow requested review from Chillee and ezyang as code owners January 12, 2023 19:06
@ezyang
Copy link
Contributor

ezyang commented Jan 12, 2023

We need someone else to shepherd this right

@facebook-github-bot facebook-github-bot deleted the gh/samdow/54/head branch June 8, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants