Skip to content

Commit

Permalink
tests : fix loop for same-type copy
Browse files Browse the repository at this point in the history
ggml-ci
  • Loading branch information
ggerganov authored Mar 11, 2025
1 parent bc25236 commit 938c779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test-backend-ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3930,13 +3930,13 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
}

// same-type copy
for (int nr = 1; nr < 4; ++nr) {
for (int nb = 1; nb < 4; ++nb) {
for (ggml_type type : all_types) {
const auto neb = ggml_blck_size(type);

test_cases.emplace_back(new test_cpy(type, type, {4*neb, 2, 3, 4}, {0, 1, 2, 3}));
test_cases.emplace_back(new test_cpy(type, type, {4*neb, 2, 3, 4}, {0, 2, 1, 3}));
test_cases.emplace_back(new test_cpy(type, type, {4*neb, 2, 3, 4}, {0, 3, 1, 2}));
test_cases.emplace_back(new test_cpy(type, type, {nb*neb, 2, 3, 4}, {0, 1, 2, 3}));
test_cases.emplace_back(new test_cpy(type, type, {nb*neb, 2, 3, 4}, {0, 2, 1, 3}));
test_cases.emplace_back(new test_cpy(type, type, {nb*neb, 2, 3, 4}, {0, 3, 1, 2}));
}
}

Expand Down

0 comments on commit 938c779

Please sign in to comment.