mv_machine_learning: correct tensor buffer size
[Version] : 0.26.7
[Issue type] : bug fix
Correct output tensor buffer size.
In original code, we set the size of inference_engine_tensor_buffer to
the one of inference_engine_tensor_info, and this incurs seg. fault
in case of not using float data type. These sizes are different each other
like below,
Size of inference_engine_tensor_info : tensor element count
Size of inference_engine_tensor_buffer : tensor element count * bytes per
an element.
So this patch calculates the size of inference_engine_tensor_buffer correctly
by checking actual bytes per an tensor element.
Change-Id: I21733fb341e93f325f6d4a3bb4df66ff69e15413
Signed-off-by: Inki Dae <inki.dae@samsung.com>