From: hyunil park Date: Wed, 18 Jan 2023 04:23:32 +0000 (+0900) Subject: [API][trainer] Change callback parameter name of GstTensorTrainerFramework X-Git-Tag: accepted/tizen/unified/20230131.162133~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e8db13bdb4b1e3c1d4c90283e8133934b0c2b8d;p=platform%2Fupstream%2Fnnstreamer.git [API][trainer] Change callback parameter name of GstTensorTrainerFramework - Change 'train' and 'invoke' to 'start' and 'push_data' respectively Signed-off-by: hyunil park --- diff --git a/gst/nnstreamer/include/nnstreamer_plugin_api_trainer.h b/gst/nnstreamer/include/nnstreamer_plugin_api_trainer.h index 407c4d0..5cbab18 100644 --- a/gst/nnstreamer/include/nnstreamer_plugin_api_trainer.h +++ b/gst/nnstreamer/include/nnstreamer_plugin_api_trainer.h @@ -86,18 +86,18 @@ struct _GstTensorTrainerFramework * @return 0 if ok. < 0 if error. */ - int (*train) (const GstTensorTrainerFramework * self, + int (*start) (const GstTensorTrainerFramework * self, const GstTensorTrainerProperties * prop, void *private_data); - /**< tensor_trainer call this to train the model + /**< tensor_trainer call this to start training the model * @param[in] prop read-only property values * @param[in] private_data, a subplugin may save its internal private data here. * @return 0 if ok. < 0 if error. */ - int (*invoke) (const GstTensorTrainerFramework * self, + int (*push_data) (const GstTensorTrainerFramework * self, const GstTensorTrainerProperties * prop, void *private_data, const GstTensorMemory * input); - /**< tensor_trainer call this to send tensor data to subplugin, subplugin constructs a data set using input. + /**< tensor_trainer call this to push tensor data to subplugin, subplugin constructs a data set using input. * @param[in] prop read-only property values * @param[in] private_data, a subplugin may save its internal private data here. * @param[in] input The array of input tensors. Allocated and filled by tensor_trainer