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

terminate called after throwing an instance of 'torch::jit::ErrorReport' terminate called recursively Aborted (core dumped) #128

Open
lebron8dong opened this issue Apr 13, 2024 · 3 comments

Comments

@lebron8dong
Copy link

lebron8dong commented Apr 13, 2024

python 3.8.19
pytorch 1.8.2

  1. run gen_mobilenet_model.py to generate mobilenet.pt

  2. wasmedge --dir .:. wasmedge-wasinn-example-resnet50-image.wasm mobilenet1.pt input.jpg
    error : terminate called after throwing an instance of 'torch::jit::ErrorReport' terminate called recursively Aborted (core dumped)

  3. when I use the pre-generate one at mobilenet.pt , it successfully execute.

@hydai
Copy link
Member

hydai commented Apr 15, 2024

I got confused by your command. Are you trying to run resnet50 with mobilenet?

@lebron8dong
Copy link
Author

Sorry, I forgot to change the file name. I matched the python version and model to PyTorch 1.8.2 LTS and there were no errors.

@hydai
Copy link
Member

hydai commented Apr 25, 2024

Is this issue fixed? If you want to use another version of Python/PyTorch, you may need to update the related deps files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants