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

how to export onnx #5

Open
xll426 opened this issue Oct 27, 2023 · 1 comment
Open

how to export onnx #5

xll426 opened this issue Oct 27, 2023 · 1 comment

Comments

@xll426
Copy link

xll426 commented Oct 27, 2023

No description provided.

@xll426
Copy link
Author

xll426 commented Oct 27, 2023

Traceback (most recent call last):
File "test.py", line 399, in
torch.onnx.export(model, images, exported_model_path,verbose=True, opset_version=15)
File "/home/work/anaconda3/envs/hat/lib/python3.8/site-packages/torch/onnx/init.py", line 350, in export
return utils.export(
File "/home/work/anaconda3/envs/hat/lib/python3.8/site-packages/torch/onnx/utils.py", line 163, in export
_export(
File "/home/work/anaconda3/envs/hat/lib/python3.8/site-packages/torch/onnx/utils.py", line 1110, in _export
) = graph._export_onnx( # type: ignore[attr-defined]
RuntimeError: ONNX export failed: Couldn't export Python operator AFB2D

@xll426 xll426 changed the title how to export onnx how to export onnx Oct 27, 2023
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

1 participant