This patch adds enum for ini save and load.
**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped
Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
* describes various formats in which various selections of the
* parameters of the models can be loaded. Some formats may load
* parameters required for training. Some other formats may load model
- * configurations. Unless stated otherwise, ml_train_model_compile() has to
- * be called upon the @a model before calling this function.
+ * configurations. Unless stated otherwise, loading model configuration requires
+ * a freshly constructed model with ml_train_model_construct() without
+ * ml_train_model_compile(), loading model parameter requires
+ * ml_train_model_compile() to be called upon the @a model before calling this
+ * function.
* @since_tizen 6.5
* @remarks If you want to access only internal storage by using this function,
* you should add privilege %http://tizen.org/privilege/mediastorage. Or, if you
*/
enum class ModelFormat {
MODEL_FORMAT_BIN =
- ML_TRAIN_MODEL_FORMAT_BIN, /**< raw bin file saves parameters required
+ ML_TRAIN_MODEL_FORMAT_BIN, /**< raw bin file saves model weights required
for inference and training without any configurations*/
-
- /** Comment intended */
- // MODEL_FORMAT_INI = 1, /**< ini file with save_path defined */
- // MODEL_FORMAT_INI_WITH_BIN = 2, /**< ini file with save_path
- // defined */
+ MODEL_FORMAT_INI = ML_TRAIN_MODEL_FORMAT_INI, /**< ini file */
+ MODEL_FORMAT_INI_WITH_BIN =
+ ML_TRAIN_MODEL_FORMAT_INI_WITH_BIN, /**< ini file with save_path defined
+ where the binaray will be saved */
};
/**
*/
typedef enum {
ML_TRAIN_MODEL_FORMAT_BIN =
- 0, /**< raw bin file saves parameters required for inference and training
+ 0, /**< Raw bin file saves model weights required for inference and training
without any configurations*/
+ ML_TRAIN_MODEL_FORMAT_INI =
+ 1, /**< Ini format file saves model configurations. */
+ ML_TRAIN_MODEL_FORMAT_INI_WITH_BIN =
+ 2 /**< Ini with bin format file saves configurations with parameters
+ required for inference and training. */
} ml_train_model_format_e;
/**