mindspore/docs/api/api_python/ops/mindspore.ops.LuUnpack.rst

25 lines
1.6 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.LuUnpack
======================
.. py:class:: mindspore.ops.LuUnpack(unpack_data=True, unpack_pivots=True)
`LU_data``LU_pivots` 还原为P, L, U矩阵其中P为置换矩阵L为下三角矩阵U为上三角矩阵。通常情况下 `LU_data``LU_pivots` 是矩阵通过LU分解生成的。
.. warning::
这是一个实验性API后续可能修改或删除。
更多参考详见 :func:`mindspore.ops.lu_unpack`
参数:
- **unpack_data** (bool可选) - 是否解压缩 `LU_data` 的标志。如果为 ``False`` 则返回的L和U为 ``None`` 。默认值: ``True``
- **unpack_pivots** (bool可选) - 是否将 `LU_pivots` 解压缩为置换矩阵P的标志。如果为 ``False`` 则返回的P为 ``None`` 。默认值: ``True``
输入:
- **LU_data** (Tensor) - Tensor打包的LU分解数据shape为 :math:`(*, M, N)` ,其中 :math:`*` 为batch维度数据类型为int8、uint8、int16、int32、int64、float16、float32、float64。 `LU_data` 的维度必须等于或大于2。
- **LU_pivots** (Tensor) - Tensor打包的LU分解枢轴shape为 :math:`(*, min(M, N))` ,其中 :math:`*` 为batch维度数据类型为int8、uint8、int16、int32或int64。
输出:
- **pivots** (Tensor) - LU分解的置换矩阵shape为 :math:`(*, M, M)` ,数据类型与 `LU_data` 相同。
- **L** (Tensor) - LU分解的L矩阵数据类型与 `LU_data` 相同。
- **U** (Tensor) - LU分解的U矩阵数据类型与 `LU_data` 相同。