Skip to content
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

StopIteration Error in torch.fx tutorial with TransformerEncoderLayer #1705

Closed
lkp411 opened this issue Oct 9, 2021 · 10 comments
Closed

StopIteration Error in torch.fx tutorial with TransformerEncoderLayer #1705

lkp411 opened this issue Oct 9, 2021 · 10 comments
Assignees

Comments

@lkp411
Copy link

lkp411 commented Oct 9, 2021

I’m trying to run the fx profiling tutorial in tutorials/fx_profiling_tutorial.py at master · pytorch/tutorials · GitHub 1 on a single nn.TransformerEncoderLayer as opposed to the resnet in the example and I keep running into a StopIteration error. Why is this happening? All I did was replace the resnet with a transformer encoder layer.

cc @eellison @suo @gmagogsfm @jamesr66a @msaroufim @SherlockNoMad @sekyondaMeta @svekars @carljparker @NicolasHug @kit1980 @subramen

@svekars svekars added question fx issues related to fx labels Mar 6, 2023
@svekars svekars added easy docathon-h1-2023 A label for the docathon in H1 2023 labels May 31, 2023
@LujiAnna
Copy link

LujiAnna commented Jun 1, 2023

/assigntome

@LujiAnna
Copy link

LujiAnna commented Jun 9, 2023

Hi @lkp411 ,
Do you mind sharing your code, when you were using nn.TransformerEncoderLayer instead of ResNet, to see which part produces the StopIteration error ?

@LujiAnna LujiAnna removed their assignment Jun 13, 2023
@LujiAnna
Copy link

/assigntome

@lkp411
Copy link
Author

lkp411 commented Jun 13, 2023 via email

@github-actions
Copy link

The issue is already assigned. Please pick an opened and unnasigned issue with the docathon-h1-2023 label.

@svekars
Copy link
Contributor

svekars commented Oct 24, 2023

This issue has been unassigned due to inactivity. If you are still planning to work on this, you can still send a PR referencing this issue.

@svekars svekars added docathon-h2-2023 and removed docathon-h1-2023 A label for the docathon in H1 2023 labels Oct 30, 2023
@pilot-j
Copy link

pilot-j commented Nov 1, 2023

/assigntome

@pilot-j pilot-j removed their assignment Nov 5, 2023
@krishnakalyan3
Copy link
Contributor

/assigntome

@krishnakalyan3
Copy link
Contributor

krishnakalyan3 commented Nov 5, 2023

@svekars I think this issue can be closed. The author who reported this issue can not provide a reproducible example.

I have tested this tutorial as is without changes, I see no issues.
https://www.kaggle.com/krishnakalyan3/fx-profiling-tutorial

@svekars
Copy link
Contributor

svekars commented Nov 7, 2023

Thanks for investigating, closing since there is not much we can do here and can't get input from the tutorial maintainers. Will grant half credit for the docathon.

@svekars svekars closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants