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

feat: extends ggml_pad to allow prefix padding #864

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

balisujohn
Copy link
Contributor

@balisujohn balisujohn commented Jun 18, 2024

modifies ggml_pad so you can specify beginning and end padding for the first 2 dimensions of a tensor. Previously, padding could only be added at the end of the first 2 dimensions. The padding is still constant padding with a value of zero, as before.

Adds new test file test-pad.cpp

@balisujohn balisujohn marked this pull request as draft June 18, 2024 08:44
@balisujohn
Copy link
Contributor Author

I forgot that ggml_pad actually supports 4 dimensions as-is, I will add the support for pre-fix padding in all 4 dimensions, so marking as a draft for now.

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.

None yet

1 participant