[Filter/Common/Reload] Define the behavior for verify_model_path
authorWook Song <wook16.song@samsung.com>
Fri, 10 Jan 2020 04:57:42 +0000 (13:57 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 13 Jan 2020 04:30:57 +0000 (13:30 +0900)
This patch defines the behaviour of reloading model files when the
verify_model_path is set to TRUE.

Signed-off-by: Wook Song <wook16.song@samsung.com>
gst/nnstreamer/tensor_filter/tensor_filter_common.c

index 04d5d3f..7277dd1 100644 (file)
@@ -500,8 +500,11 @@ gst_tensor_filter_common_set_property (GstTensorFilterPrivate * priv,
       g_assert (model_files);
       gst_tensor_filter_parse_modelpaths_string (prop, model_files);
 
-      /* reload model if FW has been already opened */
-      /* TODO: need to define the behaviur according to priv->fw->verify_model_path */
+      /**
+       * Reload model if FW has been already opened;
+       * In the case of reloading model files, each priv->fw (tensor filter for each nnfw)
+       * has responsibility for the verification of the path regardless of priv->fw->verify_model_path.
+       */
       if (priv->prop.fw_opened && priv->is_updatable) {
         if (priv->fw && priv->fw->reloadModel) {
           if (priv->fw->reloadModel (&priv->prop, &priv->privateData) != 0) {