Skip to content

Commit 352d056

Browse files
committed
fix: move PAD_REFLECT_1D case outside of fall-through block
1 parent 974ff97 commit 352d056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-sycl/ggml-sycl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4458,13 +4458,13 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g
44584458
case GGML_OP_DIV:
44594459
case GGML_OP_REPEAT:
44604460
return true;
4461+
case GGML_OP_PAD_REFLECT_1D:
4462+
return ggml_is_contiguous(op->src[0]) && op-> type == GGML_TYPE_F32 && op->src[0]->type == GGML_TYPE_F32;
44614463
case GGML_OP_SQR:
44624464
case GGML_OP_SQRT:
44634465
case GGML_OP_SIN:
44644466
case GGML_OP_COS:
44654467
case GGML_OP_CLAMP:
4466-
case GGML_OP_PAD_REFLECT_1D:
4467-
return ggml_is_contiguous(op->src[0]) && op-> type == GGML_TYPE_F32 && op->src[0]->type == GGML_TYPE_F32;
44684468
case GGML_OP_LOG:
44694469
#if defined (GGML_SYCL_F16)
44704470
return ((op->type == GGML_TYPE_F32 || op->type == GGML_SYCL_F16) && (op->src[0]->type == GGML_TYPE_F32 || op->src[0]->type == GGML_SYCL_F16) && (op->type == op->src[0]->type));

0 commit comments

Comments
 (0)