torchvision mvit_v2_s export to onnx failed
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17.9k
- Forks
- 7.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 13
Description
🐛 Describe the bug
import torchvision
import torch.onnx
input_ = torch.randn(1, 3, 16, 224, 224, requires_grad=False)
model = torchvision.models.get_model('mvit_v2_s', weights="DEFAULT")
torch.onnx.export(model, input_, "alexnet.onnx", output_names=['output'])
Pragrame Terminated Unexpected (hang up in graph = _C._jit_pass_onnx(graph, operator_export_type))
Versions
version torch 1.13.0a0+d0d6b1f
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with torchvision.models.get_model('mvit_v2_s', weights="DEFAULT") and the provided input, then inspect the torch.onnx.export path around _C._jit_pass_onnx(graph, operator_export_type). Confirm that exporting this model completes without the process hanging and produces a usable ONNX file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100