From 75632936659772d5b2ce54b0b65319fecbaac2e6 Mon Sep 17 00:00:00 2001 From: Paul Tsochantaris Date: Wed, 17 Jan 2024 08:07:24 +0000 Subject: [PATCH] metal : remove unnecessary nil check (#4986) --- 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]; });