fix n_tasks (#2342)

ggml-ci
This commit is contained in:
slaren 2023-07-23 15:19:39 +02:00 committed by GitHub
parent 95a6c595e7
commit 3602ac4255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
ggml.c
View file

@ -16278,6 +16278,9 @@ struct ggml_cplan ggml_graph_plan(struct ggml_cgraph * cgraph, int n_threads) {
case GGML_OP_GET_ROWS:
case GGML_OP_GET_ROWS_BACK:
case GGML_OP_DIAG:
{
n_tasks = 1;
} break;
case GGML_OP_DIAG_MASK_ZERO:
case GGML_OP_DIAG_MASK_INF:
case GGML_OP_SOFT_MAX: