[Common] Fix build errors
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 29 May 2018 04:54:46 +0000 (13:54 +0900)
committer송욱/동작제어Lab(SR)/Senior Engineer/삼성전자 <wook16.song@samsung.com>
Tue, 29 May 2018 09:12:50 +0000 (18:12 +0900)
Somehow I've missed build errors between PRs

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
include/tensor_common.h
tensor_filter/tensor_filter.h

index e6b6b9c..a9e903f 100644 (file)
@@ -93,7 +93,7 @@ typedef enum _nns_media_type {
 /**
  * @brief Byte-per-element of each tensor element type.
  */
-const unsigned int nns_tensor_element_size[] = {
+static const unsigned int nns_tensor_element_size[] = {
         [_NNS_INT32] = 4,
         [_NNS_UINT32] = 4,
         [_NNS_INT16] = 2,
@@ -107,7 +107,7 @@ const unsigned int nns_tensor_element_size[] = {
 /**
  * @brief String representations for each tensor element type.
  */
-const gchar* nns_tensor_element_typename[] = {
+static const gchar* nns_tensor_element_typename[] = {
         [_NNS_INT32] = "int32",
         [_NNS_UINT32] = "uint32",
         [_NNS_INT16] = "int16",
index 1a58d62..b55aa19 100644 (file)
@@ -169,7 +169,7 @@ struct _GstTensor_Filter_Framework
   gchar *name; /**< Name of the neural network framework, searchable by FRAMEWORK property */
   gboolean allow_in_place; /**< TRUE if InPlace transfer of input-to-output is allowed. Not supported in main, yet */
   int (*invoke_NN)(GstTensor_Filter *filter, void *inputptr, void *outputptr); /**< Mandatory callback. Invoke the given network model. */
-  int (*getInputDimension)(GstTensor_Fitler *filter, uint32_t *inputDimension); /**< Optional. Set NULL if not supported. Get dimension of input tensor */
+  int (*getInputDimension)(GstTensor_Filter *filter, uint32_t *inputDimension); /**< Optional. Set NULL if not supported. Get dimension of input tensor */
   int (*getOutputDimension)(GstTensor_Filter *filter, uint32_t *outputDimension); /**< Optional. Set NULL if not supported. Get dimension of output tensor */
 };
 typedef struct _GstTensor_Filter_Framework GstTensor_Filter_Framework;