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

torch custom_op fix for rope #569

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

abcdabcd987
Copy link
Member

@abcdabcd987 abcdabcd987 commented Oct 29, 2024

Fix after changes made in #568

torch.compile doesn't like returning input arguments. So, change the return type of pybind fns to void, given that it's already an inplace op.

PyTorch Library annotation is applied to a wrapper function for each pybind op. Python API doesn't change. Both inplace and non-inplace versions calls the annotated wrapper function.

@yzh119 yzh119 merged commit 3e104bc into flashinfer-ai:main Oct 30, 2024
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