[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs orthogonal decomposition on the input tensor.

  • Formula:

A=QRA = QR

[object Object] is the input tensor with at least two dimensions. [object Object] can be expressed as the product of the orthogonal matrix [object Object] and the upper triangular matrix [object Object].

  • 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): [object Object] in the formula. The data type can be FLOAT, FLOAT16, DOUBLE, COMPLEX64, or COMPLEX128. are supported. The can be ND. The shape supports 2 to 8 dimensions, and is represented as [..., M, N], where [object Object] indicates 0 to 6 dimensions.

    • [object Object] (bool, computation input): determines whether [object Object] is a square matrix. If this parameter is set to [object Object], [object Object] is a square matrix. For example, if [object Object] is [..., M, N], the complete Q[..., M, M] and R[..., M, N] are output. If this parameter is set to [object Object], [object Object] is a skinny matrix. For example, if [object Object] is [..., M, N], Q[..., M, K] and R[..., K, N] are output, where [object Object] is the minimum value of [object Object] and [object Object].

    • [object Object] (aclTensor*, computation output): [object Object] in the formula. The data type can be FLOAT, FLOAT16, DOUBLE, COMPLEX64, or COMPLEX128. are supported. The can be ND and must be the same as that of [object Object] and [object Object]. For details about the shape restrictions, see the description of the [object Object] parameter.

    • [object Object] (aclTensor*, computation output): [object Object] in the formula. The data type can be FLOAT, FLOAT16, DOUBLE, COMPLEX64, or COMPLEX128. are supported. The can be ND and must be the same as that of [object Object] and [object Object]. For details about the shape restrictions, see the description of the [object Object] parameter.

    • [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): 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:

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

[object Object]
  • Deterministic computation:
    • [object Object] defaults to a deterministic implementation.
[object Object]

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

[object Object]