From 6ff39c418c7d1ea852b930f11fa3366691db1dc6 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 9 May 2023 16:59:44 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 530751097 --- .../java/com/google/mediapipe/tasks/core/TaskOptions.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java index 9c6f1adca..11330ac0f 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/core/TaskOptions.java @@ -64,7 +64,9 @@ public abstract class TaskOptions { break; case GPU: accelerationBuilder.setGpu( - InferenceCalculatorProto.InferenceCalculatorOptions.Delegate.Gpu.getDefaultInstance()); + InferenceCalculatorProto.InferenceCalculatorOptions.Delegate.Gpu.newBuilder() + .setUseAdvancedGpuApi(true) + .build()); break; } return BaseOptionsProto.BaseOptions.newBuilder()