acltdtGetDataItem

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

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

√

Function

Obtains the acltdtDataItem with a specified index from acltdtDataset.

Prototype

1
acltdtDataItem *acltdtGetDataItem(const acltdtDataset *dataset, size_t index)

Parameters

Parameter

Input/Output

Description

dataset

Input

Pointer to data of the acltdtDataset type.

Call acltdtCreateDataset to create data of the acltdtDataset type in advance and then call acltdtAddDataItem to add acltdtDataItem.

index

Input

Index of acltdtDataItem to obtain.

Returns

  • Success: acltdtDataItem address
  • Failure: empty address