[object Object]

[object Object][object Object]undefined
[object Object]

Operator function: Exchanges any dimension of a tensor. For example, if the input [object Object] is a tensor with shape [2, 3, 5] and [object Object] is (2, 0, 1), the output is a tensor with shape [5, 2, 3].

[object Object]

Each operator has calls. First, aclnnPermuteGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnPermute is called to perform computation.

  • [object Object]
  • [object Object]
[object Object]
  • Parameters:

    • [object Object] (aclTensor*, compution input): input tensor. are supported. The supports ND. The shape cannot be greater than 8D. The data type must be the same as that of out.

      • [object Object]Atlas training products[object Object]: The data type can be FLOAT, FLOAT16, DOUBLE, UINT64, INT64, UINT32, INT32, UINT16, INT16, UINT8, INT8, BOOL, COMPLEX64 or COMPLEX128.
      • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]: The data type can be FLOAT, FLOAT16, DOUBLE, UINT64, INT64, UINT32, INT32, UINT16, INT16, UINT8, INT8, BOOL, COMPLEX64, COMPLEX128 or BFLOAT16.
    • [object Object] (aclIntArray*, compution input): integer array, dimensions of the original tensor, specifying the new axis order. The value must be within the range of [–Number of [object Object] dimensions, Number of [object Object] dimensions – 1].

    • [object Object] (aclTensor*, computation output): output tensor. are supported. The supports ND. The shape cannot be greater than 8D, and is determined by [object Object] and the shape of [object Object]. The data type must be the same as that of self.

      • [object Object]Atlas training products[object Object]: The data type can be FLOAT, FLOAT16, DOUBLE, UINT64, INT64, UINT32, INT32, UINT16, INT16, UINT8, INT8, BOOL, COMPLEX64 or COMPLEX128.
      • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]: The data type can be FLOAT, FLOAT16, DOUBLE, UINT64, INT64, UINT32, INT32, UINT16, INT16, UINT8, INT8, BOOL, COMPLEX64, COMPLEX128 or BFLOAT16.
    • [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 aclnnPermuteGetWorkspaceSize.

    • [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:
    • aclnnPermute defaults to deterministic implementation.
[object Object]

The following examples are for reference only. For details, see .

[object Object]