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

export onnx error ( We don't have an op for aten::mul but it isn't a special case ) #17

Open
reskipper opened this issue Apr 18, 2024 · 4 comments

Comments

@reskipper
Copy link

when i export toponet to onnx ,report error as below :
RuntimeError: 0INTERNAL ASSERT FAILED at "../torch/csrc/jit/ir/alias_analysis.cpp":532, please report a bug to PyTorch. We don't have an op for aten::mul but it isn't a special case. Argument types: Tensor, bool,

Any suggestions on how I can solve this problem? Thanks a lot.

@sephyli
Copy link
Contributor

sephyli commented Apr 18, 2024

Thanks for your question. You may can upgrade your PyTorch version to fix this. The repository's dependency is flexible.

@reskipper
Copy link
Author

I tried torch 1.13.0+cu116 and mmcv-full 1.7.0, but the error persists. If I upgrade the torch version further, the mmcv-full version compatible with it may not be suitable for mmdet.
If there are specific recommended versions, please let me know. Thanks!!

@sephyli
Copy link
Contributor

sephyli commented Apr 22, 2024

I have a combination with torch 2.0 and CUDA 11.7/11.8, feel free to try.
I think torch 1.13 can also compatible with mmcv-full 1.6.0. You can directly try on 1.13.

torch==2.0
torchvision==0.15.0
mmcls==0.25.0
mmcv-full==1.6.0
mmdet==2.26.0
mmdet3d==1.0.0rc6
mmsegmentation==0.29.1

@reskipper
Copy link
Author

Thank you for your suggestion. I've tried it, but it still doesn't work.
In fact, I encountered this error while exporting onnx for several repos. I will come back to provide further details if I find a solution.

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