[MachineLearning.Train] Modify return type of GetSummary method
authorHyunil <hyunil46.park@samsung.com>
Wed, 13 Jul 2022 05:32:15 +0000 (14:32 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 23 Aug 2022 05:50:26 +0000 (14:50 +0900)
- Return type is changed from void to string
- Remove out param because Tizen C# API does not use out param

Signed-off-by: Hyunil <hyunil46.park@samsung.com>
src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Model.cs

index 2a98ef8..08813b5 100644 (file)
@@ -164,15 +164,16 @@ namespace Tizen.MachineLearning.Train
         /// Use this function to get the summary of the neural network model.
         /// </remarks>
         /// <param name="verbosity">Verbose level of the summary.</param>
-        /// <param name="retSummary">On return, a string value. The summary of the current model. Avoid logic to parse and exploit summary if possible.</param>
+        /// <returns>On return, a string value. The summary of the current model. Avoid logic to parse and exploit summary if possible.</returns>
         /// <since_tizen> 10 </since_tizen>
-        public void GetSummary(NNTrainerSummaryType verbosity, out string retSummary)
+        public string GetSummary(NNTrainerSummaryType verbosity)
         {
+            string retSummary;
             NNTrainerError ret = Interop.Model.GetSummary(handle, verbosity, out string summary);
             NNTrainer.CheckException(ret, "Failed to get summary");
 
             retSummary = summary;
-
+            return retSummary;
         }
 
         /// <summary>