-
Notifications
You must be signed in to change notification settings - Fork 24.1k
terminate called after throwing an instance of 'c10::Error' what(): isTuple() INTERNAL ASSERT FAILED at "/home/wenda/libtorch/include/ATen/core/ivalue_inl.h":927, please report a bug to PyTorch. Expected Tuple but got GenericList #53895
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
Comments
This error occurred when I deployed yolov5 C + + with libtorch. Who can help me? |
8000
Can you provide self-contained code reproducing the error? |
This is the C + + code I tested |
This is the code of the wrong place. |
Sorry, this is not a reproducible sample, it requires files (e.g. |
Are u using the same version of pytorch/libtorch to save/loading .pt file? |
I met the same question, have you fixed it? |
I got "Expected Tuple but got String" and this fixed it for me haha. Apparently I used 1.12.0 (source) with 1.11.0. Thx |
I met the same question, have you fixed it? |
That solved my issue, too. |
Hi, Do you mean this error can be fixed by update the version of pytorch?? |
I'm having same troubles here. If you want a reproduction, I'm trying to run stable diffusion on cpu (do not have gpu on this laptop). System: Ubuntu 23.04 Note: I do not use conda, everything from system lib or Stack trace
I'm not an expert of python and even less of pytorch so I would appreciate some help here 🙏 |
Hi @Hideman85, can you make sure you are using the correct version of PyTorch (1.12.1) and Torchvision (0.13.1) and then give it a try.
|
I met the same question. I can save and load in python, but not in c++ env: |
cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @anjali411 @yf225 @glaringlee
The text was updated successfully, but these errors were encountered: