tensor_trainer subplugin definition More...
#include <nnstreamer_plugin_api_trainer.h>
Public Attributes | |
uint64_t | version |
int(* | create )(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data) |
int(* | destroy )(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data) |
int(* | start )(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, GstTensorTrainerEventNotifier *notifier, void *private_data) |
int(* | stop )(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data) |
int(* | push_data )(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void *private_data, const GstTensorMemory *input) |
int(* | getStatus )(const GstTensorTrainerFramework *self, GstTensorTrainerProperties *prop, void *private_data) |
int(* | getFrameworkInfo )(const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void *private_data, GstTensorTrainerFrameworkInfo *fw_info) |
tensor_trainer subplugin definition
Common callback parameters: prop Trainer properties. Read Only. private_data Subplugin's private data. Set this (*private_data = XXX) if you want to change trainer->private_data.
Definition at line 95 of file nnstreamer_plugin_api_trainer.h.
int(* _GstTensorTrainerFramework::create) (const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data) |
tensor_trainer call this to create the model
[in] | prop | read-only property values |
[in/out] | private_data, a subplugin may save its internal private data here. |
Definition at line 102 of file nnstreamer_plugin_api_trainer.h.
int(* _GstTensorTrainerFramework::destroy) (const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data) |
tensor_trainer call this to destroy the model, Set NULL after that.
[in] | prop | read-only property values |
[in/out] | private_data, a subplugin may save its internal private data here. |
Definition at line 110 of file nnstreamer_plugin_api_trainer.h.
int(* _GstTensorTrainerFramework::getFrameworkInfo) (const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void *private_data, GstTensorTrainerFrameworkInfo *fw_info) |
Mandatory callback. Get the frameworks statically determined info.
[in] | prop | read-only property values |
[in] | private_data | A subplugin may save its internal private data here. |
[out] | fw_info | struct to hold frameworks info. Must be allocated by the caller (return value). |
Definition at line 154 of file nnstreamer_plugin_api_trainer.h.
int(* _GstTensorTrainerFramework::getStatus) (const GstTensorTrainerFramework *self, GstTensorTrainerProperties *prop, void *private_data) |
tensor_trainer call this to get status of subplugin
[in] | prop | property values |
[in] | private_data,a | subplugin may save its internal private data here. |
Definition at line 146 of file nnstreamer_plugin_api_trainer.h.
int(* _GstTensorTrainerFramework::push_data) (const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void *private_data, const GstTensorMemory *input) |
tensor_trainer call this to push tensor data to subplugin, subplugin constructs a data set using input.
[in] | prop | read-only property values |
[in] | private_data,a | subplugin may save its internal private data here. |
[in] | input | The array of input tensors. Allocated and filled by tensor_trainer |
Definition at line 136 of file nnstreamer_plugin_api_trainer.h.
int(* _GstTensorTrainerFramework::start) (const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, GstTensorTrainerEventNotifier *notifier, void *private_data) |
tensor_trainer call this to start training the model
[in] | prop | read-only property values |
[in] | notify,a | handle of event notify |
[in] | private_data,a | subplugin may save its internal private data here. |
Definition at line 118 of file nnstreamer_plugin_api_trainer.h.
int(* _GstTensorTrainerFramework::stop) (const GstTensorTrainerFramework *self, const GstTensorTrainerProperties *prop, void **private_data) |
tensor_trainer call this to stop training the model
[in] | prop | read-only property values |
[in/out] | private_data, a subplugin may save its internal private data here. |
Definition at line 128 of file nnstreamer_plugin_api_trainer.h.
uint64_t _GstTensorTrainerFramework::version |
Version of the struct | 32bit (validity check) | 16bit (API version) | 16bit (Subplugin's internal version) |
Definition at line 97 of file nnstreamer_plugin_api_trainer.h.