@@ -1254,7 +1254,7 @@ struct test_count_equal : public test_case {
12541254 ggml_tensor * b = ggml_new_tensor (ctx, type, 4 , ne.data ());
12551255 ggml_set_name (b, " b" );
12561256
1257- ggml_tensor * b_argmax = ggml_argmax (ctx, a );
1257+ ggml_tensor * b_argmax = ggml_argmax (ctx, b );
12581258 ggml_set_name (b_argmax, " b_argmax" );
12591259
12601260 ggml_tensor * out = ggml_count_equal (ctx, a_argmax, b_argmax);
@@ -1511,6 +1511,7 @@ struct test_cont : public test_case {
15111511};
15121512
15131513// GGML_OP_ADD
1514+ // GGML_OP_SUB
15141515// GGML_OP_MUL
15151516// GGML_OP_DIV
15161517struct test_bin_bcast : public test_case {
@@ -3860,7 +3861,8 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
38603861 test_cases.emplace_back (new test_conv_transpose_1d ({3 ,2 ,1 ,1 }, {3 ,1 ,2 ,1 }, 1 , 0 , 1 ));
38613862 test_cases.emplace_back (new test_conv_transpose_1d ({2 ,1 ,1 ,1 }, {3 ,1 ,1 ,1 }, 1 , 0 , 1 ));
38623863
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 }));
38643866
38653867 test_cases.emplace_back (new test_argmax (GGML_TYPE_F32, {32 , 1 , 1 , 1 }));
38663868 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() {
38853887 test_cases.emplace_back (new test_repeat_back (GGML_TYPE_F32, {8 , 6 , 4 , 2 }, {1 , 2 , 1 , 1 }, view));
38863888 test_cases.emplace_back (new test_repeat_back (GGML_TYPE_F32, {8 , 6 , 4 , 2 }, {1 , 1 , 2 , 1 }, view));
38873889 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));
38903890 }
38913891
38923892 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() {
39383938 test_cases.emplace_back (new test_cont (GGML_TYPE_BF16, {2 , 3 , 5 ,7 }));
39393939
39403940 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}) {
39423942 test_cases.emplace_back (new test_bin_bcast (op, type, ne, nr));
39433943 }
39443944 };
0 commit comments