mv_machine_learning: code refactoring to checking custom device type 00/264400/5
authorInki Dae <inki.dae@samsung.com>
Fri, 17 Sep 2021 04:40:52 +0000 (13:40 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 17 Sep 2021 06:52:34 +0000 (06:52 +0000)
commit5fae68afb713837cd5320b6f6fb1a96ee786b92c
tree8402ce498dfeda9cccc4c3bbc8e4c3496b014429
parent95a17a82e9012ba3f616f9e304e4d508e95bb126
mv_machine_learning: code refactoring to checking custom device type

This patch does code refactoring for enhancing code readiability
of the condition which checks if config type path is required or
not according to given backend and target device types.

As for this, this patch adds IsValidBackendType fucntion to check if
a given backend type is valid or not, IsConfigFilePathRequired
function to check if config file path is required or not, and
makes these functions to be used instead of existing complicated condition.

Change-Id: I195e3caeb205b159e2128a14c2b4b6516e7b952d
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/mv_inference/inference/src/mv_inference_open.cpp