From 5137bc0052cc84a6fe71d4551837946ee566802b Mon Sep 17 00:00:00 2001 From: Paul Tsochantaris Date: Tue, 16 Jan 2024 18:09:25 +0000 Subject: [PATCH] Removing unnessecary nil check --- ggml-metal.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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]; });