From 4197c97d2b693dfaf0e5c142c792505ec43100dc Mon Sep 17 00:00:00 2001 From: Kwanghoon Son Date: Tue, 1 Nov 2022 21:19:15 -0400 Subject: [PATCH] Change InputMetadata class to struct [Issue type] refactoring Metadata just hold informations. To prevent make all get/setter method, change class to struct same as OutputMetadata. Change-Id: Ib9a8246d2be26d2fe0a2d33e66abf880d75f0761 Signed-off-by: Kwanghoon Son --- .../inference/include/InputMetadata.h | 30 ++++++++++------------ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/mv_machine_learning/inference/include/InputMetadata.h b/mv_machine_learning/inference/include/InputMetadata.h index 366be75..1622a53 100644 --- a/mv_machine_learning/inference/include/InputMetadata.h +++ b/mv_machine_learning/inference/include/InputMetadata.h @@ -55,29 +55,28 @@ struct Options Quantization quantization; }; -class InputMetadata +struct InputMetadata { -public: /** - * @brief Creates an InputMetadata class instance. - * - * @since_tizen 6.5 - */ + * @brief Creates an InputMetadata class instance. + * + * @since_tizen 6.5 + */ InputMetadata(); /** - * @brief Destroys an InputMetadata class instance including - * its all resources. - * - * @since_tizen 6.5 - */ + * @brief Destroys an InputMetadata class instance including + * its all resources. + * + * @since_tizen 6.5 + */ ~InputMetadata() = default; /** - * @brief Parses an InputMetadata - * - * @since_tizen 6.5 - */ + * @brief Parses an InputMetadata + * + * @since_tizen 6.5 + */ int Parse(JsonObject *root, std::string key_name); bool IsParsed(void) { @@ -92,7 +91,6 @@ public: return option; } -private: bool parsed; std::map mSupportedShapeType; std::map mSupportedDataType; -- 2.7.4