[API][trainer] Change type of train_complete to int
authorhyunil park <hyunil46.park@samsung.com>
Wed, 25 Jan 2023 01:57:05 +0000 (10:57 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 25 Jan 2023 08:55:36 +0000 (17:55 +0900)
- Sub-plugin using c++ cannot access this type

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

index 5cbab18..d3fee87 100644 (file)
@@ -50,7 +50,7 @@ typedef struct _GstTensorTrainerProperties
 typedef struct _GstTensorTrainerFrameworkInfo
 {
   const char *name;    /**< Name of the neural network framework, searchable by FRAMEWORK property. */
-  gboolean  train_complete;  /**< Check if train is complete */
+  int train_complete;  /**< Check if train is complete, Use int instead of gboolean because this is refered by custom plugins. */
   int64_t epoch_cnt;    /**< Number of currently completed epochs */
 } GstTensorTrainerFrameworkInfo;