Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 571412955
  • Loading branch information
cmcclanahan authored and copybara-github committed Oct 6, 2023
1 parent 830ee09 commit b503d71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mediapipe/calculators/tensor/inference_calculator_metal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ absl::Status InferenceCalculatorMetalImpl::Process(CalculatorContext* cc) {
[output_encoder endEncoding];
}
[command_buffer commit];
// The below call is found (manual testing) to resolve flickering issues for
// some use cases where multiple Metal calculators are involved.
// TODO: investigate and ensure proper synchronization
// (e.g. fences/barriers/events).
[command_buffer waitUntilScheduled];

kOutTensors(cc).Send(std::move(output_tensors));
return absl::OkStatus();
Expand Down

0 comments on commit b503d71

Please sign in to comment.