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

docs: add cummax/cummin docs #5903

Merged
merged 10 commits into from
Jun 13, 2023
Merged

Conversation

Patrick-Star125
Copy link
Contributor

added cummax/cummin docs to paddle docs repo.

@paddle-bot
Copy link

paddle-bot bot commented May 30, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5903.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

Comment on lines 2597 to 2601
cummax(x, axis=None, dtype='int64', name=None)
:::::::::

沿给定 axis 计算 Tensor x 的累计最大值。

Copy link
Collaborator

Choose a reason for hiding this comment

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

image
官网预览有些错误,试试改一下

Suggested change
cummax(x, axis=None, dtype='int64', name=None)
:::::::::
沿给定 axis 计算 Tensor x 的累计最大值。
cummax(x, axis=None, dtype='int64', name=None)
:::::::::
沿给定 axis 计算 Tensor x 的累计最大值。

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Patrick-Star125 看了下,这并不是写法的问题,而是因为pr冲突导致的显示不正确。

请解决一下冲突~

Comment on lines 2608 to 2613
cummin(x, axis=None, dtype='int64', name=None)
:::::::::

沿给定 axis 计算 Tensor x 的累计最小值。

返回:计算后的 Tensor 和对应索引 Indices。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
cummin(x, axis=None, dtype='int64', name=None)
:::::::::
沿给定 axis 计算 Tensor x 的累计最小值。
返回:计算后的 Tensor 和对应索引 Indices。
cummin(x, axis=None, dtype='int64', name=None)
:::::::::
沿给定 axis 计算 Tensor x 的累计最小值。
返回:计算后的 Tensor 和对应索引 Indices。


沿给定 ``axis`` 计算 Tensor ``x`` 的累加最大值。

**注意**:结果的第一个元素和输入的第一个元素相同。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
**注意**:结果的第一个元素和输入的第一个元素相同。
.. note::
结果的第一个元素和输入的第一个元素相同。


沿给定 ``axis`` 计算 Tensor ``x`` 的累计最大值。

**注意**:结果的第一个元素和输入的第一个元素相同。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
**注意**:结果的第一个元素和输入的第一个元素相同。
.. note::
结果的第一个元素和输入的第一个元素相同。

@Patrick-Star125
Copy link
Contributor Author

格式已修改

@luotao1
Copy link
Collaborator

luotao1 commented Jun 13, 2023

@Patrick-Star125 请解决下冲突

@Patrick-Star125
Copy link
Contributor Author

Done

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 166261b into PaddlePaddle:develop Jun 13, 2023
@Patrick-Star125 Patrick-Star125 deleted the cum branch June 13, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants