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

fix: Rename torch.onnx._export method name. #1811

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jgvlf
Copy link

@jgvlf jgvlf commented Nov 27, 2024

When we follow the steps to install YOLOX project, the feature to export a pytorch model to onnx is returning the following error:

AttributeError: module 'torch.onnx' has no attribute '_export'

In the requirements, the version of Pytorch is setted >=1.7 therefore the time that this PR is being create, the version that is being installed is 2.5.1.

And I check in the Pytorch documentation that the correct name is export even in the 1.7 version.

OBS: Pytorch Documentation Links:
Pytorch 1.7.0 - torch.onnx.export

Pytorch 2.5.0 - torch.onnx.export

@CLAassistant
Copy link

CLAassistant commented Nov 27, 2024

CLA assistant check
All committers have signed the CLA.

@jgvlf jgvlf marked this pull request as draft November 27, 2024 19:21
@jgvlf jgvlf marked this pull request as ready for review November 27, 2024 19:21
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

Successfully merging this pull request may close these issues.

2 participants