Go to the documentation of this file.
14 #ifndef __NNS_PLUGIN_API_TRAINER_H__
15 #define __NNS_PLUGIN_API_TRAINER_H__
19 #define GST_TENSOR_TRAINER_FRAMEWORK_BASE (0xDEAFDEAD00000000ULL)
20 #define GST_TENSOR_TRAINER_FRAMEWORK_V1 (GST_TENSOR_TRAINER_FRAMEWORK_BASE | 0x10000ULL)
@ TRAINER_EVENT_TRAINING_COMPLETION
int nnstreamer_trainer_exit(GstTensorTrainerFramework *ttsp)
Trainer's sub-plugin may call this to unregister itself.
int(* stop)(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data)
void nnstreamer_trainer_notify_event(GstTensorTrainerEventNotifier *notifier, GstTensorTrainerEventType type, void *data)
Trainer's sub-plugin call this to notify event.
Internal meta data exchange format for a other/tensors instance.
GstTensorSrcIIOChannelProperties * prop
DTYPE_UNSIGNED ( .
GstTensorTrainerEventType
GstTensorTrainer's event type list.
The unit of each data tensors. It will be used as an input/output tensor of other/tensors.
struct _GstTensorTrainerFrameworkInfo GstTensorTrainerFrameworkInfo
GstTensorTrainer's subplugin framework related information.
const char * model_load_path
@ TRAINER_EVENT_EPOCH_COMPLETION
struct _GstTensorTrainerProperties GstTensorTrainerProperties
GstTensorTrainer's properties for neural network framework (internal data structure)
double validation_accuracy
int(* start)(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, GstTensorTrainerEventNotifier *notifier, void *private_data)
tensor_trainer subplugin definition
unsigned int num_validation_samples
unsigned int num_training_samples
GstTensorsInfo input_meta
int(* getStatus)(const GstTensorTrainerFramework *self, GstTensorTrainerProperties *prop, void *private_data)
Common header file for NNStreamer, the GStreamer plugin for neural networks.
GstTensorTrainer's subplugin framework related information.
const char * model_save_path
const char * model_config
int(* create)(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data)
int(* getFrameworkInfo)(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void *private_data, GstTensorTrainerFrameworkInfo *fw_info)
int(* destroy)(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data)
struct _GstTensorTrainerEventNotifier GstTensorTrainerEventNotifier
GstTensorTrainer's event notifier.
int(* push_data)(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void *private_data, const GstTensorMemory *input)
int nnstreamer_trainer_probe(GstTensorTrainerFramework *ttsp)
Trainer's sub-plugin should call this function to register itself.
GstTensorTrainer's event notifier.
GstTensorTrainer's properties for neural network framework (internal data structure)