Skip to content

Conversation

crusaderky
Copy link
Contributor

This is a blocker to porting scipy/scipy#22308 to xpx, because jax.jit doesn't accept unhashable static arguments.

For clarity: this is just a quirk of scipy/scipy#22308. You can pass a list parameter to xpx.pad inside jax.jit; you simply can't pass it if you are calling pad = jax.jit(xpx.pad, static_argnames="pad_width"), which is not something final users will typically do.

@lucascolley lucascolley added API enhancement New feature or request labels Jan 20, 2025
@lucascolley lucascolley changed the title ENH: pad: pad_width can be any sequence ENH: pad: pad_width can be any sequence Jan 20, 2025
@lucascolley lucascolley added this to the 0.6.1 milestone Jan 20, 2025
Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

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

thanks!

@lucascolley lucascolley merged commit 3754e7c into data-apis:main Jan 20, 2025
10 checks passed
@crusaderky crusaderky deleted the pad_width branch January 21, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants