acltdtCreateDataItem

Description

Creates data of the acltdtDataItem type as a Tensor. This API is synchronous.

To destroy data of the acltdtDataItem type, call acltdtDestroyDataItem.

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

acltdtDataItem *acltdtCreateDataItem(acltdtTensorType tdtType,

const int64_t *dims,

size_t dimNum,

aclDataType dataType,

void *data,

size_t size)

Parameters

Parameter

Input/Output

Description

tdtType

Input

An enum value indicating that the tensor is normal data, end data, or error data.

dims

Input

Tensor shape.

dimNum

Input

Tensor dimension count.

dataType

Input

Data type of the normal data.

data

Input

Pointer to the data address.

size

Input

Buffer size.

Returns