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

error converting model to onnx #81

Open
mrljwlm opened this issue Jul 23, 2021 · 0 comments
Open

error converting model to onnx #81

mrljwlm opened this issue Jul 23, 2021 · 0 comments

Comments

@mrljwlm
Copy link

mrljwlm commented Jul 23, 2021

I want to convert the tps_resnet_bilstm_attn model ot onnx format, however it failed because the onnx not suport the operator grid_sampler in models/bodies/rectificators/tps_stn.py

if i skip this operator, these two errors will occured:

RuntimeError: Failed to export an ONNX attribute 'onnx::Gather', since it's not constant, please try to make things (e.g., kernel size) static if possible

RuntimeError: Unsupported: ONNX export of operator adaptive pooling, since output_size is not constant.. Please open a bug to request ONNX export support for the missing operator.

anyone can give me some help?

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