SIGN IN SIGN UP

metal : single allocation of encode_async block (#9747)

* Single allocation of encode_async block with non-ARC capture in ggml-metal.m

* Moving Block_release to the deallocation code

* Release encode block when re-setting encoding buffer count if needed

* Update ggml/src/ggml-metal.m

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
P
Paul Tsochantaris committed
96b69121033d2b6b951d1b6b1b43f8b4f97dac99
Parent: d5cb868
Committed by GitHub <noreply@github.com> on 10/7/2024, 12:26:31 PM