tensor_buffer.buffer = new unsigned char[tensor_info.size];
tensor_buffer.size = tensor_info.size;
} else if (tensor_info.data_type ==
- INFERENCE_TENSOR_DATA_TYPE_FLOAT16) {
+ INFERENCE_TENSOR_DATA_TYPE_UINT16) {
tensor_buffer.buffer = new short[tensor_info.size];
tensor_buffer.size = tensor_info.size;
} else {
tensor_buffer.buffer = new char[tensor_info.size];
tensor_buffer.size = tensor_info.size;
} else if (tensor_info.data_type ==
- INFERENCE_TENSOR_DATA_TYPE_FLOAT16) {
+ INFERENCE_TENSOR_DATA_TYPE_UINT16) {
tensor_buffer.buffer = new short[tensor_info.size];
tensor_buffer.size = tensor_info.size;
} else {
delete[] ori_buf;
}
- if (tensor_info.data_type == INFERENCE_TENSOR_DATA_TYPE_FLOAT16) {
+ if (tensor_info.data_type == INFERENCE_TENSOR_DATA_TYPE_UINT16) {
float *new_buf = new float[tensor_info.size];
if (new_buf == NULL) {
LOGE("Fail to allocate a new output tensor buffer.");