Skip to content

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
@MattVAD
Copy link

MattVAD commented Jul 3, 2025

bahhhh merge

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.

3 participants