acltdtAddDataItem

Description

Adds an acltdtDataItem to acltdtDataset. This API is synchronous.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 310P AI Processor does not support this API in the current version.

Prototype

aclError acltdtAddDataItem(acltdtDataset *dataset, acltdtDataItem *dataItem)

Parameters

Parameter

Input/Output

Description

dataset

Output

Pointer to the acltdtDataset address where acltdtDataItem is to be added.

Call acltdtCreateDataset to create data of the acltdtDataset type in advance.

dataItem

Input

Pointer to the acltdtDataItem address.

Call acltdtCreateDataItem to create data of the acltdtDataItem type in advance.

Returns

0 on success; else, failure.