mv_machine_learning: code refactoring to Inference class
authorInki Dae <inki.dae@samsung.com>
Thu, 11 Aug 2022 23:04:14 +0000 (08:04 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 2 Sep 2022 08:09:25 +0000 (17:09 +0900)
commit1b01e0440e55b5baf5daecbb27f28e1b15386642
treee556cc45119044160b6fa9a432833f2cd12e2a77
parent25d17f5f57ff27a8c10427f56c12bb3e6d8bf184
mv_machine_learning: code refactoring to Inference class

[Issue type] : code refactoring

Did code refactoring to Inference class by doing,
- extracted a function - ConvertOutputDataTypeToFloat - from
  FillOutputResult function, which converts tensor data to float type.
  In fact, float data of output tensor is needed commonly so
  converted output tensor data to float type just after inference is
  completed. And finally, it changed FillOuputResult function name to
  GetTensorInfo and moved it to TensorBuffer class.
- renamed several variables and function with meaningful name properly.

This patch is just a step for next code refactoring.

Change-Id: I4fd808ef05dd69203eb815a8230595aa1f1b7e54
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/face_recognition/src/face_recognition.cpp
mv_machine_learning/inference/include/Inference.h
mv_machine_learning/inference/include/TensorBuffer.h
mv_machine_learning/inference/src/Inference.cpp
mv_machine_learning/inference/src/TensorBuffer.cpp