- Description: Pads the last three dimensions of the input tensor using replication of the input boundary.
- Example:
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*, compute input): original input data to be padded, aclTensor on the device. The shape supports 4 or 5 dimensions, and the data type can be BFLOAT16, FLOAT16, FLOAT32, DOUBLE, INT8, INT16, INT32, INT64, UINT8, COMPLEX64, or COMPLEX128. The supports ND. are supported.[object Object](aclIntArray*, compute input): dimensions to be padded in the input. It is an aclIntArray on the host. The length is 6, and the values indicate respectively the padding values on the left, right, top, bottom, front, and back.[object Object](aclTensor*, compute output): output after padding, which is an aclTensor on the device. The shape and dtype must be the same as those of[object Object]. The data type supports BFLOAT16, FLOAT16, FLOAT32, DOUBLE, INT8, INT16, INT32, INT64, UINT8, COMPLEX64, and COMPLEX128. . are supported. In the output shape, all dimensions except the last three dimensions to be padded must be the same. In the last three dimensions, the third to last dimension of out is equal to that of[object Object]plus the last two values of[object Object]; the last but one dimension of[object Object]is equal to that of[object Object]plus the middle two values of[object Object]; the last dimension of[object Object]is equal to that of[object Object]plus the first two values of[object Object].[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:
Parameters:
[object Object](void*, input): 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 the first-phase API aclnnReplicationPad3dGetWorkspaceSize.[object Object](aclOpExecutor*, input): operator executor, containing the operator computation process.[object Object](aclrtStream, input): stream for executing the task.
Returns:
- Deterministic compute:
[object Object]defaults to a deterministic implementation.
The following example is for reference only. For details, see .