From 83a8743a8b94a45bcbde9cbb627abb882e29f6f7 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 8 May 2023 14:28:53 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 530408554 --- mediapipe/tasks/cc/core/base_options.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mediapipe/tasks/cc/core/base_options.cc b/mediapipe/tasks/cc/core/base_options.cc index 410e8d353..a34c23168 100644 --- a/mediapipe/tasks/cc/core/base_options.cc +++ b/mediapipe/tasks/cc/core/base_options.cc @@ -55,7 +55,9 @@ proto::BaseOptions ConvertBaseOptionsToProto(BaseOptions* base_options) { base_options_proto.mutable_acceleration()->mutable_tflite(); break; case BaseOptions::Delegate::GPU: - base_options_proto.mutable_acceleration()->mutable_gpu(); + base_options_proto.mutable_acceleration() + ->mutable_gpu() + ->set_use_advanced_gpu_api(true); break; case BaseOptions::Delegate::EDGETPU_NNAPI: base_options_proto.mutable_acceleration()