[Filter] Fix coverity analysis error
authorHyoungjooAhn <hello.ahn@samsung.com>
Thu, 20 Sep 2018 08:05:58 +0000 (17:05 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Fri, 21 Sep 2018 01:32:56 +0000 (10:32 +0900)
1. variable initialization was cleared by last pr(they were removed). 2. make useless line as a comment for future

Signed-off-by: HyoungjooAhn <hello.ahn@samsung.com>
gst/tensor_filter/tensor_filter_tensorflow_lite_core.cc

index b9eeb2a..865456d 100644 (file)
@@ -51,7 +51,6 @@ TFLiteCore::TFLiteCore (const char *_model_path)
   loadModel ();
   setInputTensorProp ();
   setOutputTensorProp ();
-
 }
 
 /**
@@ -95,7 +94,8 @@ TFLiteCore::loadModel ()
       _print_log ("Failed to mmap model\n");
       return -1;
     }
-    model->error_reporter ();
+    /* If got any trouble at model, active below code. It'll be help to analyze. */
+    /* model->error_reporter (); */
 
     tflite::ops::builtin::BuiltinOpResolver resolver;
     tflite::InterpreterBuilder (*model, resolver) (&interpreter);