]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cuda : simplify expression
authorGeorgi Gerganov <redacted>
Wed, 3 Jan 2024 12:18:46 +0000 (14:18 +0200)
committerGeorgi Gerganov <redacted>
Wed, 3 Jan 2024 12:43:51 +0000 (14:43 +0200)
Co-authored-by: slaren <redacted>
extra/sync-ggml.last
ggml-cuda.cu

index 9166e0fa3d880283133c124435749ba5306f0426..354246a264eb4c40793d3ef850660e3771915b39 100644 (file)
@@ -1 +1 @@
-965137f49917768959679a9e860dc414e170fd55
+3fd01e00e40583ccd4b393a7c6502d6a4455a1d5
index 2e759d43e736cd609d3509c466d4f235d3242551..52d3cc6a6a67ca5c430da364ccf63e27919eb254 100644 (file)
@@ -10044,10 +10044,7 @@ static bool ggml_backend_cuda_supports_op(ggml_backend_t backend, const ggml_ten
         case GGML_OP_CONCAT:
             {
                 ggml_type src0_type = op->src[0]->type;
-                if (src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16) {
-                    return true;
-                }
-                return false;
+                return src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16;
             } break;
         case GGML_OP_NONE:
         case GGML_OP_RESHAPE: