Make convert_to_onnx runable as script again#20009
Conversation
Fix `convert_graph_to_onnx.py` relative import so it can be run as a script again.
|
It seems there is an issue with your CircleCI permissions, the tests won't run. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
Thanks, CircleCI supposedly has access to all my repositories now but I'm not sure how to re-trigger the tests. Sorry if I'm missing something obvious. |
|
You can try an empty commit ( |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
Sorry it fell under our radar. Don't hesitate to ping me next time it happens! |
* Make convert_to_onnx runable as script again Fix `convert_graph_to_onnx.py` relative import so it can be run as a script again. * Trigger CI
Fix
convert_graph_to_onnx.pyscript crash by replacing relative import.What does this PR do?
Fixes
python transformers/convert_graph_to_onnx.pycrash with errorError while converting the model: attempted relative import with no known parent package. I found this was previously fixed in #10857 and regressed.Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.