]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
metal : remove unnecessary nil check (#4986)
authorPaul Tsochantaris <redacted>
Wed, 17 Jan 2024 08:07:24 +0000 (08:07 +0000)
committerGitHub <redacted>
Wed, 17 Jan 2024 08:07:24 +0000 (10:07 +0200)
ggml-metal.m

index a549e6713e9bcb9c5d718311c7096f0975585885..8bb4edd64db2e6afb05cb61e0f8c1a37a267e172 100644 (file)
@@ -2236,10 +2236,7 @@ static bool ggml_metal_graph_compute(
 #endif
         }
 
-        if (encoder != nil) {
-            [encoder endEncoding];
-            encoder = nil;
-        }
+        [encoder endEncoding];
 
         [command_buffer commit];
     });