Description: Performs backward propagation of reflection_pad1d. For details about the forward propagation, see .
Example:
[object Object]
Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.
[object Object][object Object]
Parameters:
[object Object](aclTensor*, computation input): input gradient,[object Object]on the device. The data type can be BFLOAT16, FLOAT16, FLOAT32, DOUBLE, COMPLEX64, or COMPLEX128, which is the same as that of[object Object]. are supported. The can be ND. The shape supports 2D or 3D, with dimensions the same as those of[object Object]and[object Object]. The shape must be the same as that of output in forward propagation[object Object].[object Object](aclTensor*, computation input): tensor to be padded, aclTensor on the device. The data type can be BFLOAT16, FLOAT16, FLOAT32, DOUBLE, COMPLEX64, or COMPLEX128. are supported. The can be ND. The shape supports 2D or 3D, with dimensions the same as those of[object Object]and[object Object]. The shape must be the same as that of[object Object].[object Object](aclIntArray*, computation input): padding range, aclIntArray array on the device. The data type is INT64 and the length is 2. The two values of[object Object]must be less than the value of the last dimension of[object Object].[object Object](aclTensor*, computation output): gradient of computed[object Object], whose data type can be BFLOAT16, FLOAT16, FLOAT32, DOUBLE, COMPLEX64, or COMPLEX128, which is the same as that of[object Object]. The shape is the same as that of[object Object]. are supported. The can be ND.[object Object](uint64_t*, output): size of the workspace to be allocated on the device.[object Object](aclOpExecutor**, output): operator executor, containing the operator computation process.
Returns:
[object Object]
Parameters:
[object Object](void*, input): memory address of the workspace to be allocated on the device.[object Object](uint64_t, input): size of the workspace to be allocated on the device, which is obtained by calling the first-phase API[object Object].[object Object](aclOpExecutor*, input): operator executor, containing the operator computation process.[object Object](aclrtStream, input): stream for executing the task.
Returns:
- Deterministic computation:
[object Object]defaults to a deterministic implementation.
If the number of elements in [object Object] is greater than 300*1024*1024, the execution may time out.
The following example is for reference only. For details, see .
[object Object]