Function: create_tensor_desc
C Prototype |
aclTensorDesc *aclCreateTensorDesc(aclDataType dataType, int numDims, const int64_t *dims, aclFormat format) |
---|---|
Python Function |
tensor_desc = acl.create_tensor_desc(data_type, dims, format) |
Function Usage |
Creates the data of a tensor description. It is a synchronous interface. |
Input Description |
data_type: int, data type of the tensor description. dims: int list, size of a specified dimension of the tensor description. Each element in the array indicates the size of each dimension in the tensor. If the value of an element in the array is 0, the tensor is empty. format: int, format of the tensor description. |
Return Value |
tensor_desc: int, address object for creating the tensor description. |
Restrictions |
None |
Precautions |
None |