Update ggml/src/ggml-metal.m
Some checks failed
flake8 Lint / Lint (push) Has been cancelled

This commit is contained in:
Georgi Gerganov 2024-10-07 14:40:28 +03:00 committed by GitHub
parent 4af03de2a6
commit 594a07a515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3428,10 +3428,10 @@ static void ggml_backend_metal_set_n_cb(ggml_backend_t backend, int n_cb) {
} }
} }
if(ctx->encode_async) { if (ctx->encode_async) {
Block_release(ctx->encode_async); Block_release(ctx->encode_async);
} }
ctx->encode_async = Block_copy(^(size_t iter) { ctx->encode_async = Block_copy(^(size_t iter) {
const int cb_idx = iter; const int cb_idx = iter;
const int n_cb_l = ctx->n_cb; const int n_cb_l = ctx->n_cb;