Refactoring code according to refactored inferenc-engine-interface
authorTae-Young Chung <ty83.chung@samsung.com>
Wed, 4 Mar 2020 05:49:12 +0000 (14:49 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 20 Apr 2020 00:51:05 +0000 (09:51 +0900)
commitf448c615a8b94c8efacf4e371a4523399e51c40f
tree0b3e8aa6d3ee9b50cf4e72a33d459c10cb210b86
parenteac557d59c63f6edac9769af87d8cff7ad50ff7b
Refactoring code according to refactored inferenc-engine-interface

NOTE that OpenCV doesn't support to get information of input layer.
The input should be set by calling cv::dnn::Net::setInput() API.
OpenCV allocates memory on the first cv::dnn::Net::forward().
After that, it reuse the allocated memory.
So, in this refactoring,
Create mInputData as cv::Mat type for input tensors
and returns their allocated memories.
Allocate the memories of mOutputBlobs by calling forward() with
a dummy tensors.

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
src/inference_engine_opencv.cpp
src/inference_engine_opencv_private.h