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

【Hackathon 5th No.35】为 Paddle 新增 histogramdd API 中文文档 #6350

Merged
merged 9 commits into from
Dec 12, 2023
Merged

【Hackathon 5th No.35】为 Paddle 新增 histogramdd API 中文文档 #6350

merged 9 commits into from
Dec 12, 2023

Conversation

cocoshe
Copy link
Contributor

@cocoshe cocoshe commented Dec 5, 2023

Copy link

paddle-bot bot commented Dec 5, 2023

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

docs/api/paddle/Overview_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/histogramdd_cn.rst Outdated Show resolved Hide resolved
Comment on lines 16 to 21
- **input** (Tensor) - 输入多维 Tensor 。
- **bins** (Tensor[], int[], or int) - 如果张量数组,则表示所有 bin 边界。如果 int 数组,则表示每个维度中等宽 bin 的数量。如果为 int,则定义所有维度的等宽 bin 数量。
- **ranges** (sequence of float, optional) - 定义每个维度中最左边和最右边的 bin 边界。如果为 None ,则将每个尺寸的最小值和最大值设置为最左边和最右边。
- **density** (bool,可选) - 如果为 False(默认值),结果将包含每个 bin 中的计数(或权重)。如果为 True,则将每个计数(权重)除以总计数(总权重),然后再除以相关 bin 的宽度。
- **weights** (Tensor,可选) - 默认情况下,输入中的每个值的权重为 1。如果传递权重张量,则输入中的每个 N 维坐标将其相关权重贡献给其 bin 的结果。权重张量应具有与输入张量相同的形状,但不包括其最内维度 N。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
Copy link
Collaborator

Choose a reason for hiding this comment

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

参数描述不太规范,请参考 API参数 常用文档写法
bins 参数为例,

    - **bins** (Tensor[]|int[]|int) - 如果为 Tensor 数组,则表示......。默认值为...表示...。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

参数描述不太规范,请参考 API参数 常用文档写法。 以 bins 参数为例,

    - **bins** (Tensor[]|int[]|int) - 如果为 Tensor 数组,则表示......。默认值为...表示...。

已修改,辛苦review~ @sunzhongkai588

cocoshe and others added 5 commits December 11, 2023 17:24
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
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 264d0c2 into PaddlePaddle:develop Dec 12, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor PaddlePaddle Hackathon 飞桨黑客松活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants