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

官方文档关于paddle.nn.functional.hardsigmoid的定义与具体实现方法不一致 #64157

Open
Eddie-Wang1120 opened this issue May 9, 2024 · 1 comment
Assignees
Labels

Comments

@Eddie-Wang1120
Copy link
Contributor

文档链接&描述 Document Links & Description

文档链接:
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/hardsigmoid_cn.html#hardsigmoid
存在问题:
官方文档中关于hardsigmoid定义如下:
image
而hardsigmoid在源码中的具体实现如下:
image
再看一下单侧中关于hardsigmoid函数的测试方法,实现更为清晰:
image
由上图可清晰发现,paddle.nn.functional.hardsigmoid的单侧和具体实现方法是一套逻辑,文档中的定义是另一套逻辑,两个逻辑不完全一样,用文档中的逻辑是无法通过单侧的,所以这是个确定的文档错误。

请提出你的建议 Please give your suggestion

将文档定义改为真正代码实现的逻辑

@lyuwenyu
Copy link
Contributor

收到 我们check下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants