Synopsis
float dpuGetTensorScale
(
DPUTensor* tensor
);
Arguments
- tensor
- The pointer to DPU Tensor.
Description
Get the scale value of one DPU Tensor.
Returns
Return the scale value of Tensor, or report error in case of any failure. The users can perform quantization (Float32 to Int8) for DPU input tensor or de-quantization (Int8 to Float32) for DPU output tensor with this scale factor.
Include File
n2cube.h
Availability
Vitis AI v1.0