- Internal tensors-info is not correctly initialized for some sub filters, causing incompatible format error.
Signed-off-by: Junhwan Kim <jejudo.kim@samsung.com>
device_type (edgetpu_subplugin_device_type::DEFAULT),
model_interpreter (nullptr), edgetpu_context (nullptr), model (nullptr)
{
- inputInfo.num_tensors = 0;
- outputInfo.num_tensors = 0;
+ gst_tensors_info_init (std::addressof (inputInfo));
+ gst_tensors_info_init (std::addressof (outputInfo));
/** Nothing to do. Just let it have an empty instance */
}
if (model_path)
delete model_path;
+ gst_tensors_info_free (std::addressof (inputInfo));
+ gst_tensors_info_free (std::addressof (outputInfo));
model_path = nullptr;
- inputInfo.num_tensors = 0;
- outputInfo.num_tensors = 0;
empty_model = true;
}
runtime_list (zdl::DlSystem::Runtime_t::CPU), use_cpu_fallback (false),
container (nullptr), snpe (nullptr)
{
- inputInfo.num_tensors = 0;
- outputInfo.num_tensors = 0;
+ gst_tensors_info_init (std::addressof (inputInfo));
+ gst_tensors_info_init (std::addressof (outputInfo));
input_tensors.reserve (NNS_TENSOR_RANK_LIMIT);
#if (DBG)
invoke_time_total = total_frames = 0;
if (model_path)
delete model_path;
+ gst_tensors_info_free (std::addressof (inputInfo));
+ gst_tensors_info_free (std::addressof (outputInfo));
runtime_list.clear ();
input_tensors.clear ();
output_tensor_map.clear ();
model_path = nullptr;
- inputInfo.num_tensors = 0;
- outputInfo.num_tensors = 0;
empty_model = true;
}
: tensor_filter_subplugin (), empty_model (true), model_path (nullptr),
device (DLDevice{ kDLCPU, 0 }), mod_factory (nullptr), gmod (nullptr)
{
- inputInfo.num_tensors = 0;
- outputInfo.num_tensors = 0;
+ gst_tensors_info_init (std::addressof (inputInfo));
+ gst_tensors_info_init (std::addressof (outputInfo));
}
/**
input_tensor_list.clear ();
output_tensor_list.clear ();
+ gst_tensors_info_free (std::addressof (inputInfo));
+ gst_tensors_info_free (std::addressof (outputInfo));
model_path = nullptr;
- inputInfo.num_tensors = 0;
- outputInfo.num_tensors = 0;
empty_model = true;
}