nn_tensor_dequantize_buffer

Function nn_tensor_dequantize_buffer 

Source
pub unsafe extern "C" fn nn_tensor_dequantize_buffer(
    source: *mut NNTensor,
    buffer_length: usize,
    buffer: *mut f32,
) -> NNError
Expand description

De-quantizes the source tensor into the destination buffer.

The source tensor should be integer and the destination float. The source tensor must have quantization parameters otherwise the operation will simply cast the integer data to float.

The buffer must be at least buffer_length*sizeof(float) size in bytes.

@public @memberof NNTensor @since 2.4