[API][trainer] Change callback parameter name of GstTensorTrainerFramework
authorhyunil park <hyunil46.park@samsung.com>
Wed, 18 Jan 2023 04:23:32 +0000 (13:23 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 19 Jan 2023 01:10:22 +0000 (10:10 +0900)
- Change 'train' and 'invoke' to 'start' and 'push_data' respectively

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
gst/nnstreamer/include/nnstreamer_plugin_api_trainer.h

index 407c4d0..5cbab18 100644 (file)
@@ -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