Skip to content

Commit 7bed7eb

Browse files
ggerganovslaren
andcommitted
cuda : simplify expression
Co-authored-by: slaren <[email protected]>
1 parent d55356d commit 7bed7eb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

ggml-cuda.cu

+1-4
Original file line numberDiff line numberDiff line change
@@ -10044,10 +10044,7 @@ static bool ggml_backend_cuda_supports_op(ggml_backend_t backend, const ggml_ten
1004410044
case GGML_OP_CONCAT:
1004510045
{
1004610046
ggml_type src0_type = op->src[0]->type;
10047-
if (src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16) {
10048-
return true;
10049-
}
10050-
return false;
10047+
return src0_type != GGML_TYPE_I32 && src0_type != GGML_TYPE_I16;
1005110048
} break;
1005210049
case GGML_OP_NONE:
1005310050
case GGML_OP_RESHAPE:

scripts/sync-ggml.last

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5b6f3aeba051be8926cb921b8ba529ff990608bf
1+
3fd01e00e40583ccd4b393a7c6502d6a4455a1d5

0 commit comments

Comments
 (0)