From 86d53656c51d460c2c7d0a0831ba58c13060076d Mon Sep 17 00:00:00 2001 From: Hyunil Date: Wed, 13 Jul 2022 14:32:15 +0900 Subject: [PATCH] [MachineLearning.Train] Modify return type of GetSummary method - Return type is changed from void to string - Remove out param because Tizen C# API does not use out param Signed-off-by: Hyunil --- .../Tizen.MachineLearning.Train/Model.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Model.cs b/src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Model.cs index 2a98ef8..08813b5 100644 --- a/src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Model.cs +++ b/src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Model.cs @@ -164,15 +164,16 @@ namespace Tizen.MachineLearning.Train /// Use this function to get the summary of the neural network model. /// /// Verbose level of the summary. - /// On return, a string value. The summary of the current model. Avoid logic to parse and exploit summary if possible. + /// On return, a string value. The summary of the current model. Avoid logic to parse and exploit summary if possible. /// 10 - 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; } /// -- 2.7.4