Skip to content

Commit

Permalink
metal : remove unnecessary nil check (ggerganov#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsochantaris authored Jan 17, 2024
1 parent f46c0c1 commit 7563293
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -2236,10 +2236,7 @@ static bool ggml_metal_graph_compute(
#endif
}

if (encoder != nil) {
[encoder endEncoding];
encoder = nil;
}
[encoder endEncoding];

[command_buffer commit];
});
Expand Down

0 comments on commit 7563293

Please sign in to comment.