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

Document jax.lax.padtype_to_pads #19874

Open
patrick-kidger opened this issue Feb 19, 2024 · 0 comments
Open

Document jax.lax.padtype_to_pads #19874

patrick-kidger opened this issue Feb 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@patrick-kidger
Copy link
Collaborator

JAX has the jax.lax.padtype_to_pads function for converting string-specified padding e.g. padding='same' into the before-and-after numeric padding.

This seems to be useful for downstream libraries looking to implement their own convolutional layers. In particular this comes up when wanting to (a) duplicate the string-based padding behaviour of lax.conv_general_dilated, but (b) use nonzero padding (e.g. circular padding instead).

Right now it's not documented. Would this be something we can add to the public API?

@patrick-kidger patrick-kidger added the enhancement New feature or request label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant