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

Feature: Circular Padding #638

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small fix in test function
Had it print data when not prompted to by accident
  • Loading branch information
gartia committed Dec 6, 2023
commit 9395e55015079c21bd5c222c9e69ebebcb7cfc5e
9 changes: 7 additions & 2 deletions tests/test-circularpadding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,16 @@ int main(void) {
};

bool passed = true;
printf("\nResult:\n");
if(debug){
printf("\nResult:\n");
}
for (int i = 0; i < 5; ++i) {
for (int j = 0; j < 5; ++j) {
float val = ggml_get_f32_1d(padded_a, i * 5 + j);
printf("%4.1f ", val);

if(debug){
printf("%4.1f ", val);
}
if (val != expected[i][j]) {
passed = false;
}
Expand Down