From febc4fd28320a527bcad42862e667b450cfa3209 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Thu, 5 Jan 2023 19:25:13 +0530 Subject: [PATCH] Updated comments in BaseOptions Helpers --- .../tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm b/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm index 66694a94e..bd863b20b 100644 --- a/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm +++ b/mediapipe/tasks/ios/core/utils/sources/MPPBaseOptions+Helpers.mm @@ -21,6 +21,8 @@ using BaseOptionsProto = ::mediapipe::tasks::core::proto::BaseOptions; @implementation MPPBaseOptions (Helpers) - (void)copyToProto:(BaseOptionsProto *)baseOptionsProto { + baseOptionsProto->Clear(); + if (self.modelAssetPath) { baseOptionsProto->mutable_model_asset()->set_file_name(self.modelAssetPath.UTF8String); } @@ -31,6 +33,7 @@ using BaseOptionsProto = ::mediapipe::tasks::core::proto::BaseOptions; break; } case MPPDelegateGPU: + // TODO: Provide an implementation for GPU Delegate. break; default: break;