From e39119ae533edb86066e44df464bd24024ab86ef Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 5 Sep 2023 20:48:57 -0700 Subject: [PATCH] Add missing cache writing implementation in InferenceCalculatorAdvancedGL Add missing implementation for absl::Status SaveGpuCachesBasedOnBehavior(tflite::gpu::TFLiteGPURunner* gpu_runner) const for non android/chromeos. PiperOrigin-RevId: 562973338 --- mediapipe/calculators/tensor/BUILD | 1 + .../calculators/tensor/inference_calculator_gl_advanced.cc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/mediapipe/calculators/tensor/BUILD b/mediapipe/calculators/tensor/BUILD index 017ab4f39..e74ecffe6 100644 --- a/mediapipe/calculators/tensor/BUILD +++ b/mediapipe/calculators/tensor/BUILD @@ -448,6 +448,7 @@ cc_library( "//mediapipe/framework/deps:file_path", "//mediapipe/gpu:gl_calculator_helper", "//mediapipe/util/tflite:tflite_gpu_runner", + "@com_google_absl//absl/log:absl_log", "@com_google_absl//absl/memory", "@com_google_absl//absl/status", "@com_google_absl//absl/status:statusor", diff --git a/mediapipe/calculators/tensor/inference_calculator_gl_advanced.cc b/mediapipe/calculators/tensor/inference_calculator_gl_advanced.cc index 77e6eeafe..28ea45de0 100644 --- a/mediapipe/calculators/tensor/inference_calculator_gl_advanced.cc +++ b/mediapipe/calculators/tensor/inference_calculator_gl_advanced.cc @@ -355,6 +355,12 @@ absl::Status InferenceCalculatorGlAdvancedImpl::OnDiskCacheHelper::Init( return absl::OkStatus(); } +absl::Status InferenceCalculatorGlAdvancedImpl::OnDiskCacheHelper:: + SaveGpuCachesBasedOnBehavior( + tflite::gpu::TFLiteGPURunner* gpu_runner) const { + return absl::OkStatus(); +} + absl::Status InferenceCalculatorGlAdvancedImpl::OnDiskCacheHelper::ReadGpuCaches( tflite::gpu::TFLiteGPURunner* gpu_runner) const {