metal : remove unnecessary nil check (#4986)

This commit is contained in:
Paul Tsochantaris 2024-01-17 08:07:24 +00:00 committed by GitHub
parent f46c0c1b0e
commit 7563293665
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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];
});