@@ -1254,7 +1254,7 @@ struct test_count_equal : public test_case {
1254
1254
ggml_tensor * b = ggml_new_tensor (ctx, type, 4 , ne.data ());
1255
1255
ggml_set_name (b, " b" );
1256
1256
1257
- ggml_tensor * b_argmax = ggml_argmax (ctx, a );
1257
+ ggml_tensor * b_argmax = ggml_argmax (ctx, b );
1258
1258
ggml_set_name (b_argmax, " b_argmax" );
1259
1259
1260
1260
ggml_tensor * out = ggml_count_equal (ctx, a_argmax, b_argmax);
@@ -1511,6 +1511,7 @@ struct test_cont : public test_case {
1511
1511
};
1512
1512
1513
1513
// GGML_OP_ADD
1514
+ // GGML_OP_SUB
1514
1515
// GGML_OP_MUL
1515
1516
// GGML_OP_DIV
1516
1517
struct test_bin_bcast : public test_case {
@@ -3860,7 +3861,8 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
3860
3861
test_cases.emplace_back (new test_conv_transpose_1d ({3 ,2 ,1 ,1 }, {3 ,1 ,2 ,1 }, 1 , 0 , 1 ));
3861
3862
test_cases.emplace_back (new test_conv_transpose_1d ({2 ,1 ,1 ,1 }, {3 ,1 ,1 ,1 }, 1 , 0 , 1 ));
3862
3863
3863
- test_cases.emplace_back (new test_count_equal ());
3864
+ test_cases.emplace_back (new test_count_equal (GGML_TYPE_F32, {4 , 500 , 1 , 1 }));
3865
+ test_cases.emplace_back (new test_count_equal (GGML_TYPE_F32, {4 , 5000 , 1 , 1 }));
3864
3866
3865
3867
test_cases.emplace_back (new test_argmax (GGML_TYPE_F32, {32 , 1 , 1 , 1 }));
3866
3868
test_cases.emplace_back (new test_argmax (GGML_TYPE_F32, {100 , 10 , 1 , 1 }));
@@ -3885,8 +3887,6 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
3885
3887
test_cases.emplace_back (new test_repeat_back (GGML_TYPE_F32, {8 , 6 , 4 , 2 }, {1 , 2 , 1 , 1 }, view));
3886
3888
test_cases.emplace_back (new test_repeat_back (GGML_TYPE_F32, {8 , 6 , 4 , 2 }, {1 , 1 , 2 , 1 }, view));
3887
3889
test_cases.emplace_back (new test_repeat_back (GGML_TYPE_F32, {8 , 6 , 4 , 2 }, {1 , 1 , 1 , 2 }, view));
3888
- test_cases.emplace_back (new test_repeat_back (GGML_TYPE_I32, {8 , 6 , 4 , 2 }, {2 , 1 , 1 , 1 }, view));
3889
- test_cases.emplace_back (new test_repeat_back (GGML_TYPE_I16, {8 , 6 , 4 , 2 }, {1 , 1 , 1 , 2 }, view));
3890
3890
}
3891
3891
3892
3892
test_cases.emplace_back (new test_dup (GGML_TYPE_F32));
@@ -3938,7 +3938,7 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
3938
3938
test_cases.emplace_back (new test_cont (GGML_TYPE_BF16, {2 , 3 , 5 ,7 }));
3939
3939
3940
3940
auto add_test_bin_bcast = [&](ggml_type type, std::array<int64_t , 4 > ne, std::array<int , 4 > nr) {
3941
- for (auto op : {ggml_add, ggml_mul, ggml_div}) {
3941
+ for (auto op : {ggml_add, ggml_sub, ggml_mul, ggml_div}) {
3942
3942
test_cases.emplace_back (new test_bin_bcast (op, type, ne, nr));
3943
3943
}
3944
3944
};
0 commit comments