-
Notifications
You must be signed in to change notification settings - Fork 637
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
Added the ability to build a project with PyTorch 2.0. #2553
Conversation
Namely, I added the flag -std=c++17 to extra_compile_args depending on the version of Torch.
hi, thanks for your PR. Could you sign the cla? |
You forget to import |
Thank you very much, import added. "12 workflows awaiting approval" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Motivation
I use mmdeploy in my project.
Modification
Added the ability to build a project with PyTorch 2.0.
Namely, I added the flag -std=c++17 to extra_compile_args in setup.py depending on the version of Torch like mmcv setup.py.
https://github.com/open-mmlab/mmcv/blob/main/setup.py#L203