Skip to content

Commit b3be71a

Browse files
committed
tests : fix loop for same-type copy
ggml-ci
1 parent ad62ba1 commit b3be71a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test-backend-ops.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3930,13 +3930,13 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
39303930
}
39313931

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

3937-
test_cases.emplace_back(new test_cpy(type, type, {4*neb, 2, 3, 4}, {0, 1, 2, 3}));
3938-
test_cases.emplace_back(new test_cpy(type, type, {4*neb, 2, 3, 4}, {0, 2, 1, 3}));
3939-
test_cases.emplace_back(new test_cpy(type, type, {4*neb, 2, 3, 4}, {0, 3, 1, 2}));
3937+
test_cases.emplace_back(new test_cpy(type, type, {nb*neb, 2, 3, 4}, {0, 1, 2, 3}));
3938+
test_cases.emplace_back(new test_cpy(type, type, {nb*neb, 2, 3, 4}, {0, 2, 1, 3}));
3939+
test_cases.emplace_back(new test_cpy(type, type, {nb*neb, 2, 3, 4}, {0, 3, 1, 2}));
39403940
}
39413941
}
39423942

0 commit comments

Comments
 (0)