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

Add numba dispatch for sort and argsort #1151

Open
jessegrabowski opened this issue Jan 9, 2025 · 0 comments
Open

Add numba dispatch for sort and argsort #1151

jessegrabowski opened this issue Jan 9, 2025 · 0 comments

Comments

@jessegrabowski
Copy link
Member

Description

import pytensor.tensor as pt
import pytensor

x = pt.dvector('x')
y = pt.sort(x)

f = pytensor.function([x], y, mode='NUMBA')

We can support this graph when sort = "quicksort", so we should. Numba does not support the kind argument for np.sort. For argsort, the kind argument is support for quicksort and mergesort, so we can support those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants