@@ -2236,29 +2236,6 @@ struct test_count_equal : public test_case {
22362236 }
22372237};
22382238
2239- /* COUNT_EQUAL – typed test (no argmax), to cover F32/F16/I32/I16 */
2240- struct test_count_equal_typed : public test_case {
2241- const ggml_type type;
2242- const std::array<int64_t , 4 > ne;
2243-
2244- test_count_equal_typed (ggml_type type = GGML_TYPE_F32,
2245- std::array<int64_t , 4 > ne = {128 , 64 , 1 , 1 })
2246- : type(type), ne(ne) {}
2247-
2248- std::string vars () override {
2249- return VARS_TO_STR2 (type, ne);
2250- }
2251-
2252- ggml_tensor * build_graph (ggml_context * ctx) override {
2253- ggml_tensor * a = ggml_new_tensor (ctx, type, 4 , ne.data ());
2254- ggml_set_name (a, " a" );
2255- ggml_tensor * b = ggml_new_tensor (ctx, type, 4 , ne.data ());
2256- ggml_set_name (b, " b" );
2257- ggml_tensor * out = ggml_count_equal (ctx, a, b);
2258- ggml_set_name (out, " out" );
2259- return out;
2260- }
2261- };
22622239
22632240// GGML_OP_REPEAT
22642241struct test_repeat : public test_case {
@@ -5964,12 +5941,11 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
59645941
59655942 test_cases.emplace_back (new test_count_equal (GGML_TYPE_F32, {4 , 500 , 1 , 1 }));
59665943 test_cases.emplace_back (new test_count_equal (GGML_TYPE_F32, {4 , 5000 , 1 , 1 }));
5967- // COUNT_EQUAL – typed tests by dtype
5968- test_cases.emplace_back (new test_count_equal_typed (GGML_TYPE_F32, {1024 , 1 , 1 , 1 }));
5969- test_cases.emplace_back (new test_count_equal_typed (GGML_TYPE_F32, { 64 , 64 , 1 , 1 }));
5970- test_cases.emplace_back (new test_count_equal_typed (GGML_TYPE_F16, { 256 , 32 , 1 , 1 }));
5971- test_cases.emplace_back (new test_count_equal_typed (GGML_TYPE_I32, { 512 , 16 , 1 , 1 }));
5972- test_cases.emplace_back (new test_count_equal_typed (GGML_TYPE_I16, { 512 , 16 , 1 , 1 }));
5944+ test_cases.emplace_back (new test_count_equal (GGML_TYPE_F32, {1024 , 1 , 1 , 1 }));
5945+ test_cases.emplace_back (new test_count_equal (GGML_TYPE_F32, { 64 , 64 , 1 , 1 }));
5946+ test_cases.emplace_back (new test_count_equal (GGML_TYPE_F16, { 256 , 32 , 1 , 1 }));
5947+ test_cases.emplace_back (new test_count_equal (GGML_TYPE_I32, { 512 , 16 , 1 , 1 }));
5948+ test_cases.emplace_back (new test_count_equal (GGML_TYPE_I16, { 512 , 16 , 1 , 1 }));
59735949
59745950 test_cases.emplace_back (new test_argmax (GGML_TYPE_F32, {32 , 1 , 1 , 1 }));
59755951 test_cases.emplace_back (new test_argmax (GGML_TYPE_F32, {32 , 513 , 1 , 1 }));
0 commit comments