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

【PaddlePaddle Hackathon 2】18、为 Paddle 新增 paddle.heaviside 和 paddle.Tensor.heaviside API #4641

Merged
merged 10 commits into from May 18, 2022

Conversation

BrilliantYuKaimin
Copy link
Contributor

@BrilliantYuKaimin BrilliantYuKaimin commented Apr 13, 2022

PaddlePaddle/Paddle#41872
PADDLEPADDLE_PR=41872


返回:计算后的Tensor

返回类型:Tensor
Copy link
Contributor

Choose a reason for hiding this comment

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

返回类型需要写到返回里面

Copy link
Contributor Author

Choose a reason for hiding this comment

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

我看别的全都是这么写的呀。那具体地改成什么呢?返回,Tensor,计算后的Tensor吗?

Copy link
Collaborator

Choose a reason for hiding this comment

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

这个文件比较特殊,可以先这样写

@TCChenlong
Copy link
Collaborator

请在 docs/api/paddle/Overview 页面中,添加该API的索引

@BrilliantYuKaimin
Copy link
Contributor Author

请在 docs/api/paddle/Overview 页面中,添加该API的索引

完成

:::::::::
- **x** (Tensor)- 赫维赛德阶跃函数的输入 Tensor。数据类型为 float32、float64、int32 或 int64。
- **y** (Tensor)- 决定了一个赫维赛德阶跃函数的 Tensor。数据类型为 float32、float64、int32 或 int64。
- **name** (str,可选)- 操作的名称(可选,默认值为 None)。更多信息请参见 :ref:`cn_api_guide_Name`。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

完成。

\right.

.. note::
``paddle.heaviside`` 遵守广播机制,如您想了解更多,请参见 :ref:`cn_user_guide_broadcasting`。
Copy link
Collaborator

Choose a reason for hiding this comment

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

历史问题,描述有误,请 @TCChenlong 统一做修改:

  • 您 --> 你
  • 链接失效

@Ligoml Ligoml merged commit 29d1b8f into PaddlePaddle:develop May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants