SetFixpipeNz2ndFlag
Supported Products
Product |
Supported/Unsupported |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
This API is called to set the configuration related to format conversion (from NZ to ND) during the DataCopy (CO1->GM and CO1->A1) process.
Prototype
1 | __aicore__ inline void SetFixpipeNz2ndFlag(uint16_t ndNum, uint16_t srcNdStride, uint16_t dstNdStride) |
Parameters
Parameter |
Input/Output |
Meaning |
|---|---|---|
ndNum |
Input |
Number of NDs. The type is uint16_t. Value range: ndNum ∈ [1, 65535]. |
srcNdStride |
Input |
Source stride in fractal size, indicating head-to-head offset between adjacent source NZ matrices. |
dstNdStride |
Input |
Head-to-head offset between adjacent destination ND matrices. The unit is element. |
Returns
None
Restrictions
None
Example
For details, see the complete example.
1 2 3 4 | uint16_t ndNum = 2; uint16_t srcNdStride = 2; uint16_t dstNdStride = 1; AscendC::SetFixpipeNz2ndFlag(ndNum, srcNdStride, dstNdStride); |