From c375761480d272505e97c4838c6dde01778981ee Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 7 Nov 2023 14:00:11 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 580292393 --- mediapipe/tasks/cc/core/model_resources.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mediapipe/tasks/cc/core/model_resources.h b/mediapipe/tasks/cc/core/model_resources.h index d8e8dada0..ab3897015 100644 --- a/mediapipe/tasks/cc/core/model_resources.h +++ b/mediapipe/tasks/cc/core/model_resources.h @@ -78,10 +78,10 @@ class ModelResources { ModelResources& operator=(const ModelResources&) = delete; // Returns the model resources tag. - std::string GetTag() const { return tag_; } + const std::string& GetTag() const { return tag_; } - // Returns a copy of the model file proto. - proto::ExternalFile GetModelFile() const { return *model_file_; } + // Returns the model file proto. + const proto::ExternalFile& GetModelFile() const { return *model_file_; } // Returns a pointer to tflite::model. const tflite::Model* GetTfLiteModel() const;