Removing unnessecary nil check

This commit is contained in:
Paul Tsochantaris 2024-01-16 18:09:25 +00:00
parent 158f8c9e21
commit 5137bc0052

View file

@ -2236,10 +2236,7 @@ static bool ggml_metal_graph_compute(
#endif
}
if (encoder != nil) {
[encoder endEncoding];
encoder = nil;
}
[encoder endEncoding];
[command_buffer commit];
});