dpuGetTensorScale() - 1.4 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2021-07-22
Version
1.4 English

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