[object Object][object Object][object Object]undefined
[object Object]
  • API function: Computes the singular value decomposition of one or more matrices.

    When the dimension of the input tensor is greater than 2, the high-dimensional tensor is processed as a batch of matrices. For an input tensor with shape (..., M, N), the dimensions (...) before the second-to-last dimension are considered as batch dimensions, and singular value decomposition is performed independently on each (M, N) matrix.

  • Formulas:

input=U×diag(sigma)×VT\mathbf{input} = \mathbf{U} \times \mathrm{diag}(\boldsymbol{sigma}) \times \mathbf{V}^T [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]
  • Returns

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

    The first-phase API implements input parameter validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

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

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

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

[object Object]