Skip to content

revise slogdet doc #7327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/api/paddle/linalg/slogdet_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ slogdet
.. note::
1. 如果行列式值为 0,则符号值为 0,自然对数值为-inf。
2. 如果计算的是复矩阵的行列式, :math:`abs(det)` 为行列式的模,因此符号值为 :math:`det / abs(det)` 。
3. 该 API 的返回值结构已从单个形状为 `[2, *]` 的堆叠 Tensor(其中索引 0 表示 sign,索引 1 表示 logdet)调整为包含两个独立 Tensor `(sign, logdet)` 的元组(参见 `PR #72505 <https://github.com/PaddlePaddle/Paddle/pull/72505>`_)。这可能会导致依赖旧返回值结构的已导出推理模型不兼容。

参数
::::::::::::
Expand All @@ -18,7 +19,7 @@ slogdet
返回
::::::::::::

Tensor,输出矩阵的行列式值 Shape 为 ``[2, *]``
tuple(Tensor, Tensor): 包含两个 Tensor 的元组:(sign, logabsdet)。第一个 Tensor 表示行列式的符号,第二个 Tensor 表示行列式绝对值的自然对数

代码示例
::::::::::
Expand Down