From: Hyunil Date: Wed, 13 Jul 2022 05:32:15 +0000 (+0900) Subject: [MachineLearning.Train] Modify return type of GetSummary method X-Git-Tag: accepted/tizen/unified/20231205.024657~762 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86d53656c51d460c2c7d0a0831ba58c13060076d;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [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 --- 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; } ///