Skip to content

Commit d07de0a

Browse files
ptsochantarishodlen
authored andcommitted
metal : remove unnecessary nil check (ggml-org#4986)
1 parent 60278d7 commit d07de0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ggml-metal.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,10 +2236,7 @@ static bool ggml_metal_graph_compute(
22362236
#endif
22372237
}
22382238

2239-
if (encoder != nil) {
2240-
[encoder endEncoding];
2241-
encoder = nil;
2242-
}
2239+
[encoder endEncoding];
22432240

22442241
[command_buffer commit];
22452242
});

0 commit comments

Comments
 (0)