From 5484d0934145bb00695221798401a6220edb0b86 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Thu, 5 Jan 2023 19:32:35 +0530 Subject: [PATCH] Added exception for GPUDelegate --- .../tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm b/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm index bd863b20b..3fd8fbda3 100644 --- a/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm +++ b/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm @@ -32,9 +32,10 @@ using BaseOptionsProto = ::mediapipe::tasks::core::proto::BaseOptions; baseOptionsProto->mutable_acceleration()->mutable_tflite(); break; } - case MPPDelegateGPU: + case MPPDelegateGPU: { // TODO: Provide an implementation for GPU Delegate. - break; + [NSException raise:@"Invalid value for delegate" format:@"GPU Delegate is not implemented."]; + } default: break; }