small fix
This commit is contained in:
parent
cb580a6493
commit
1f564815a3
1 changed files with 1 additions and 0 deletions
|
@ -795,6 +795,7 @@ GGML_CALL static enum ggml_status ggml_backend_cpu_graph_compute(ggml_backend_t
|
||||||
free(cpu_ctx->work_data);
|
free(cpu_ctx->work_data);
|
||||||
cpu_ctx->work_data = malloc(cplan.work_size);
|
cpu_ctx->work_data = malloc(cplan.work_size);
|
||||||
if (cpu_ctx->work_data == NULL) {
|
if (cpu_ctx->work_data == NULL) {
|
||||||
|
cpu_ctx->work_size = 0;
|
||||||
return GGML_STATUS_ALLOC_FAILED;
|
return GGML_STATUS_ALLOC_FAILED;
|
||||||
}
|
}
|
||||||
cpu_ctx->work_size = cplan.work_size;
|
cpu_ctx->work_size = cplan.work_size;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue