Skip to content

Commit 477a97a

Browse files
committed
cann (placeholder)
1 parent 782b58f commit 477a97a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ggml/src/ggml-cann/ggml-cann.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,6 @@ static bool ggml_backend_cann_supports_op(ggml_backend_dev_t dev,
21882188
case GGML_OP_MUL:
21892189
case GGML_OP_DIV:
21902190
case GGML_OP_RMS_NORM:
2191-
case GGML_OP_SCALE:
21922191
case GGML_OP_SQR:
21932192
case GGML_OP_SQRT:
21942193
case GGML_OP_CLAMP:
@@ -2210,6 +2209,9 @@ static bool ggml_backend_cann_supports_op(ggml_backend_dev_t dev,
22102209
case GGML_OP_PAD_REFLECT_1D:
22112210
case GGML_OP_COUNT_EQUAL:
22122211
return true;
2212+
case GGML_OP_SCALE:
2213+
float bias = ((const float *)(dst->op_params))[1];
2214+
return bias == 0.0f; // TODO: support bias != 0.0f
22132215
case GGML_OP_SOFT_MAX:
22142216
// TODO: support broadcast
22152217
// ref: https://github.com/ggml-org/llama.cpp/pull/14435

0 commit comments

Comments
 (0)