-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
The "traced_cell.code" output is wrong and misleading!! #1449
Labels
docathon-h1-2023
A label for the docathon in H1 2023
medium
torchscript
Issues relating to TorchScript tutorials
Comments
svekars
added
torchscript
Issues relating to TorchScript tutorials
and removed
torchscript
Issues relating to TorchScript tutorials
labels
Mar 8, 2023
If I am not wrong, the result is random because of the
When the control flows through the |
/assigntome |
bjhargrave
added a commit
to bjhargrave/pytorch-tutorials
that referenced
this issue
Jun 5, 2023
We also fix the code to use the scripted_cell just created. Fixes pytorch#1449 Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
4 tasks
svekars
pushed a commit
that referenced
this issue
Jun 8, 2023
We also fix the code to use the scripted_cell just created. Fixes #1449 Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
svekars
pushed a commit
that referenced
this issue
Jun 9, 2023
We also fix the code to use the scripted_cell just created. Fixes #1449 Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
docathon-h1-2023
A label for the docathon in H1 2023
medium
torchscript
Issues relating to TorchScript tutorials
In this code:
tutorials/beginner_source/Intro_to_TorchScript_tutorial.py
Line 224 in 70f82fe
The
print(traced_cell.code)
output in docs https://pytorch.org/tutorials/beginner/Intro_to_TorchScript_tutorial.html is:But I think the right
print(traced_cell.code)
output should be like:The problem of generation of misleading output maybe related to some complex things!
If any guy know the real answer, please help this!!
Continue:
I find that the output seems random, the below img is the my result of two attempts, the output is different!!!
I also test the below code:
The output also can be random:
cc @eellison @suo @gmagogsfm @jamesr66a
The text was updated successfully, but these errors were encountered: