SetLoadDataRepeat
Supported Products
|
Product |
Supported/Unsupported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
x |
|
|
x |
|
|
x |
Function Usage
Sets the repeat parameter of the Load3Dv2 API. After the repeat parameter is set, the Load3Dv2 API can be called once to complete the data movement for multiple iterations.
Prototype
1
|
__aicore__ inline void SetLoadDataRepeat(const LoadDataRepeatParam& repeatParams) |
Parameters
|
Parameter |
Input/Output |
Meaning |
|---|---|---|
|
repeatParams |
Input |
repeat parameter of the Load3Dv2 API, of the LoadDataRepeatParam type. For details, see ${INSTALL_DIR}/include/ascendc/basic_api/interface/kernel_struct_mm.h. Replace ${INSTALL_DIR} with the actual CANN component directory. For details about the parameter description, see Table 2. |
|
Parameter |
Meaning |
|---|---|
|
repeatTime |
Number of iterations in the height/width direction. repeatTime ∈ [0, 255]. The default value is 1. |
|
repeatStride |
Distance between the start address of the previous iteration and the start address of the next iteration in the height/width direction. n ∈ [0, 65535]. The default value is 0.
|
|
repeatMode |
Direction of the repeat iteration. The options are as follows: k ∈ [0, 1]. The default value is 0. 0: The iteration is in the height direction. 1: The iteration is in the width direction. |
Example
See Example.