Skip to content
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

Modified the document of the paddle.diff() function. #6148

Merged
merged 1 commit into from
Aug 29, 2023
Merged
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
4 changes: 2 additions & 2 deletions docs/api/paddle/diff_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ diff
out[i] = x[i+1] - x[i]

.. note::
高阶的前向差值可以通过递归的方式进行计算,目前只支持 n=1
高阶的前向差值可以通过递归的方式进行计算,`n`的值支持任意正整数

参数
::::::::::::

- **x** (Tensor) - 待计算前向差值的输入 `Tensor`,支持 bool、int32、int64、float16、float32、float64 数据类型。
- **n** (int,可选) - 需要计算前向差值的次数,目前仅支持 `n=1`,默认值为 1。
- **n** (int,可选) - 需要计算前向差值的次数,`n`的值支持任意正整数,默认值为 1。
- **axis** (int,可选) - 沿着哪一维度计算前向差值,默认值为-1,也即最后一个维度。
- **prepend** (Tensor,可选) - 在计算前向差值之前,沿着指定维度 axis 附加到输入 x 的前面,它的维度需要和输入一致,并且除了 axis 维外,其他维度的形状也要和输入一致,默认值为 None。
- **append** (Tensor,可选) - 在计算前向差值之前,沿着指定维度 axis 附加到输入 x 的后面,它的维度需要和输入一致,并且除了 axis 维外,其他维度的形状也要和输入一致,默认值为 None。
Expand Down