summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ggml-metal.m5
1 files changed, 1 insertions, 4 deletions
diff --git a/ggml-metal.m b/ggml-metal.m
index a549e671..8bb4edd6 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];
});