tensor_buffer.buffer = new float[tensor_info.size];
tensor_buffer.size = tensor_info.size * 4;
} else if (tensor_info.data_type ==
- INFERENCE_TENSOR_DATA_TYPE_UINT64) {
- tensor_buffer.buffer = new unsigned long long[tensor_info.size];
+ INFERENCE_TENSOR_DATA_TYPE_INT64) {
+ tensor_buffer.buffer = new long long[tensor_info.size];
tensor_buffer.size = tensor_info.size * 8;
} else if (tensor_info.data_type ==
INFERENCE_TENSOR_DATA_TYPE_UINT32) {
} else if (tensor_info.data_type ==
INFERENCE_TENSOR_DATA_TYPE_UINT16) {
tensor_buffer.buffer = new short[tensor_info.size];
- tensor_buffer.size = tensor_info.size;
+ tensor_buffer.size = tensor_info.size * 2;
} else {
- LOGE("Invalid output tensor data type.");
+ LOGE("Invalid output tensor data type.(%d)", tensor_buffer.data_type);
CleanupTensorBuffers();
return MEDIA_VISION_ERROR_INVALID_PARAMETER;
}