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

Use opset_version 16 instead of 18 since 16 is the latest supported version #619

Merged
merged 12 commits into from
Jul 18, 2023

Conversation

jcwchen
Copy link
Member

@jcwchen jcwchen commented Jul 12, 2023

Use opset_version 16 instead of 18 since 16 is the latest supported version by torch.onnx.export. There are some conversion failures when exporting opset_version 18. Use 16 for now and we will update opset_version in the future.

if start == -1:
raise Exception(f"Cannot find {cache_name} in {line}.")
return line[start + len(cache_name) + 1:]
raise Exception(f"Cannot find Build dir in {stdout}.")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ramkrishna2910 for the idea. In this PR it will use output to get the cache directory location.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend reading the Build dir field directly for the path.
The user can choose to specify --cache-dir in which case .cache will not be in the path.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I have updated it to use the last token from split("/"). PTAL. Thanks!

@jcwchen jcwchen requested review from ramkrishna2910 and removed request for ramkrishna2910 July 17, 2023 21:36
@jcwchen jcwchen merged commit c5612a4 into onnx:new-models Jul 18, 2023
@jcwchen jcwchen deleted the jcw/18to16 branch July 18, 2023 18:01
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