[Filter/TFLite] init tensor info
authorJaeyun <jy1210.jung@samsung.com>
Mon, 19 Nov 2018 11:29:51 +0000 (20:29 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Tue, 20 Nov 2018 04:28:45 +0000 (04:28 +0000)
Add code to init tensor info structure.
(This update is to fix coverity issue)

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/tensor_filter/tensor_filter_tensorflow_lite_core.cc
gst/tensor_filter/tensor_filter_tensorflow_lite_core.h

index 898eaa5..0aa4ff0 100644 (file)
@@ -48,6 +48,9 @@
 TFLiteCore::TFLiteCore (const char *_model_path)
 {
   model_path = _model_path;
+
+  gst_tensors_info_init (&inputTensorMeta);
+  gst_tensors_info_init (&outputTensorMeta);
 }
 
 /**
index e3de21e..a0fe062 100644 (file)
@@ -33,7 +33,7 @@
 #include <tensorflow/contrib/lite/string_util.h>
 #include <tensorflow/contrib/lite/kernels/register.h>
 
-#include "tensor_typedef.h"
+#include <tensor_common.h>
 
 /**
  * @brief      ring cache structure