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.
Formula:
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.
Parameter Description:
[object Object]Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown:
[object Object]
- Deterministic computation:
[object Object]defaults to deterministic implementation.
The following example is for reference only. For details, see .