[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Pads the last two dimensions of the input tensor by using circular padding.

  • Example:

    [object Object]
[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]

[object Object]
  • Parameters

    • [object Object] (aclTensor*, computation input): original input data to be padded, [object Object] on the device. The shape must be 3D or 4D. The data type can be FLOAT16, BFLOAT16, FLOAT32, INT8, or INT32. The can be ND. are supported.
    • [object Object] (aclIntArray*, computation input): dimensions to be padded in the input, [object Object] on the host. The shape must be 1D, the data type is INT64, and the can be ND. The length is 4, and the values represent the padding values on the left, right, top, and bottom, respectively. The first two values of [object Object] must be less than the size of the last dimension of [object Object], and the last two values must be less than the size of the second-to-last dimension of [object Object].
    • [object Object] (aclTensor*, computation output): output result after padding, [object Object] on the device. The shape must be 3D or 4D. The data type can be FLOAT16, BFLOAT16, FLOAT32, INT8, or INT32. The can be ND. are supported. The size of the second-to-last dimension of [object Object] is equal to the size of the second-to-last dimension of [object Object] plus the last two values of [object Object]. The size of the last dimension of [object Object] is equal to the size of the last dimension 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

    [object Object]: status code. For details, see .

[object Object]
[object Object]
  • 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 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

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic computation:

    • [object Object] defaults to a deterministic implementation.
  • The size of the last dimension of [object Object] must meet the following requirements:

    • INT8: (0, 98176)
    • FLOAT16/BFLOAT16: (0, 49088)
    • INT32/FLOAT32: (0, 24544)
[object Object]

The following example is for reference only. For details, see .

[object Object]