acldvppGetHistData

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

x

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

x

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.

Call acldvppVpcCalcHistAsync to generate histogram description data of each dimension in advance.

dim

Input

Histogram dimension.

Call acldvppGetHistDims to obtain the number of dimensions in the histogram. The value range of dim is [0, (Number of dimensions – 1)].

data

Output

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

len

Output

Pointer to the length of the histogram data.

Returns

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