aclGetViewStrides
Function Usage
Obtains ViewStrides of an aclTensor, that is, the stride corresponding to ViewShape.
Prototype
aclnnStatus aclGetViewStrides(const aclTensor *tensor, int64_t **stridesValue, uint64_t *stridesNum)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Source tensor. The aclTensor must be created by calling the aclCreateTensor API in advance. |
stridesValue |
Output |
Returned ViewStrides value. |
stridesNum |
Output |
Number of stride values of ViewStrides. |
Returns
0 on success; else, failure.
Parent topic: Basic APIs