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

remove pybind usage, make example python agnostic #105

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

janeyx99
Copy link
Contributor

@janeyx99 janeyx99 commented Jan 21, 2025

Use torch.ops.load_library instead of PYBIND11 to allow the extension to be python agnostic.

This is step 1 in modernizing the user story for cpp extensions. Step 2 is to change the corresponding tutorial. I also have yet to test locally that this is indeed python agnostic.

Now I've tested locally that the wheel works for 3.10 and 3.13 (when built on 3.13)

Other steps done in:
#106, #108
#107

@janeyx99
Copy link
Contributor Author

Will merge if CI passes

@janeyx99 janeyx99 merged commit 4be2205 into master Jan 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants