]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
tests : fix compile warnings for unreachable code (#9185)
authorGeorgi Gerganov <redacted>
Mon, 26 Aug 2024 13:30:25 +0000 (16:30 +0300)
committerGitHub <redacted>
Mon, 26 Aug 2024 13:30:25 +0000 (16:30 +0300)
ggml-ci

tests/test-sampling.cpp

index de858bd3b87e3d5598bc427fefdf9792c3116ad0..6c2a5db9accf2c0b14c146fc866e1c2c52d43146 100644 (file)
@@ -166,12 +166,12 @@ static void test_sampler_queue(
     for (auto s : samplers_sequence) {
         switch (s){
             case 'k': llama_sample_top_k    (nullptr, &candidates_p, top_k, 1); break;
-            case 'f': GGML_ABORT("tail_free test not implemented");   break;
-            case 'y': GGML_ABORT("typical test not implemented");     break;
+            case 'f': GGML_ABORT("tail_free test not implemented");
+            case 'y': GGML_ABORT("typical test not implemented");
             case 'p': llama_sample_top_p    (nullptr, &candidates_p, top_p, 1); break;
             case 'm': llama_sample_min_p    (nullptr, &candidates_p, min_p, 1); break;
-            case 't': GGML_ABORT("temperature test not implemented"); break;
-            default : GGML_ABORT("Unknown sampler");                  break;
+            case 't': GGML_ABORT("temperature test not implemented");
+            default : GGML_ABORT("Unknown sampler");
         }
 
         llama_sample_softmax(nullptr, &candidates_p); // make sure tokens are sorted for tests