Skip to content

Conversation

@andyjiang1116
Copy link
Contributor

@andyjiang1116 andyjiang1116 commented Nov 30, 2021

add chinese doc for paddle.diff op

截屏2021-12-02 下午6 07 00

截屏2021-11-30 下午3 18 15

@paddle-bot-old
Copy link

Thanks for your contribution!

.. math::
out[i] = x[i+1] - x[i]

高阶的前向差值可以通过递归方式进行计算,目前只支持n=1。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前只支持n=1。这里也用note的格式

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,谢谢,已改正

- **n** (int, 可选) - 需要计算前向差值的次数,目前仅支持 `n=1`,默认值为1。
- **axis** (int, 可选) - 沿着哪一维度计算前向差值,默认值为-1,也即最后一个维度。
- **prepend** (Tensor, 可选) - 在计算前向差值之前,沿着指定维度axis附加到输入x的前面,它的维度需要和输入一致,并且除了axis维外,其他维度的形状也要和输入一致,默认值为None。
- **prepend** (Tensor, 可选) - 在计算前向差值之前,沿着指定维度axis附加到输入x的后面,它的维度需要和输入一致,并且除了axis维外,其他维度的形状也要和输入一致,默认值为None。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是 append

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,谢谢,已修改

@TCChenlong TCChenlong merged commit 5483cf7 into PaddlePaddle:develop Dec 6, 2021
RichardWooSJTU pushed a commit to RichardWooSJTU/docs that referenced this pull request Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants