Go to the documentation of this file.
13 #ifndef __NNS_TENSOR_DATA_H__
14 #define __NNS_TENSOR_DATA_H__
105 gdouble * average, gdouble **
result);
Structure for tensor data.
uint32_t tensor_dim[NNS_TENSOR_RANK_LIMIT]
case tensor_data_s gboolean * result
gboolean gst_tensor_data_raw_average_per_channel(gpointer raw, gsize length, tensor_type type, tensor_dim dim, gdouble **results)
Calculate average value of the tensor per channel (the first dim).
enum _nns_tensor_type tensor_type
Possible data element types of other/tensor.
gboolean gst_tensor_data_set(tensor_data_s *td, tensor_type type, gpointer value)
Set tensor element data with given type.
gboolean gst_tensor_data_get(tensor_data_s *td, gpointer value)
Get tensor element value.
gboolean gst_tensor_data_raw_typecast(gpointer input, tensor_type in_type, gpointer output, tensor_type out_type)
Typecast tensor element value.
gboolean gst_tensor_data_raw_std(gpointer raw, gsize length, tensor_type type, gdouble *average, gdouble **result)
Calculate standard deviation of the tensor.
gboolean gst_tensor_data_typecast(tensor_data_s *td, tensor_type type)
Typecast tensor element data.
Common header file for NNStreamer, the GStreamer plugin for neural networks.
gboolean gst_tensor_data_raw_average(gpointer raw, gsize length, tensor_type type, gdouble **result)
Calculate average value of the tensor.
To make the code simple with all the types. "C++ Template"-like.
gboolean gst_tensor_data_raw_std_per_channel(gpointer raw, gsize length, tensor_type type, tensor_dim dim, gdouble *averages, gdouble **results)
Calculate standard deviation of the tensor per channel (the first dim).