diff --git a/ggml-metal.m b/ggml-metal.m index a549e6713..8bb4edd64 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -2236,10 +2236,7 @@ static bool ggml_metal_graph_compute( #endif } - if (encoder != nil) { - [encoder endEncoding]; - encoder = nil; - } + [encoder endEncoding]; [command_buffer commit]; });