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

ENH: Implement pt.pad #743

Open
jessegrabowski opened this issue May 3, 2024 · 0 comments · May be fixed by #748
Open

ENH: Implement pt.pad #743

jessegrabowski opened this issue May 3, 2024 · 0 comments · May be fixed by #748

Comments

@jessegrabowski
Copy link
Member

Description

Numpy, along with derivative tensor libraries like jax, torch, etc, all offer padding functions to insert values to the left and right (and top and bottom, etc) to a tensor. We should probably have this as well. It shouldn't be too difficult (famous last words) -- I see it essentially as some shape computation followed by an AllocSubtensor, although we could certainly try to figure out the best way to do this.

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

Successfully merging a pull request may close this issue.

1 participant