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
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: