acldvppGetHistData

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Obtains histogram data based on the specified dimension.

Prototype

1
aclError acldvppGetHistData(acldvppHist *hist, uint32_t dim, uint32_t **data, uint16_t *len)

Parameters

Parameter

Input/Output

Description

hist

Input

Pointer to the histogram description.

The acldvppVpcCalcHistAsync interface needs to be called in advance to collect statistics on the histogram data of each dimension.

dim

Input

Histogram dimension.

Call the acldvppGetHistDims interface to obtain the number of dimensions of the histogram. The value range of dim is as follows: [0, (Number of dimensions - 1)].

data

Output

Pointer to the start address of the histogram data of the corresponding dimension.

len

Output

Pointer to the length of the histogram data.

Returns

0 on success; otherwise, failure. For details, see aclError.