-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add expm1 op and test #33066
Add expm1 op and test #33066
Conversation
Thanks for your contribution! |
@@ -73,6 +73,80 @@ def init_kernel_type(self): | |||
pass | |||
|
|||
|
|||
class TestExpm1(OpTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以参考class TestSigmoid(TestActivation) 直接继承TestActivation里面的func,把有区别的部分重写,其余不需要重写。
@@ -45,6 +45,7 @@ | |||
from ..fluid.layers import cosh # noqa: F401 | |||
from ..fluid.layers import exp # noqa: F401 | |||
from ..fluid.layers import exp_ # noqa: F401 | |||
from ..fluid.layers import expm1 # noqa: F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tensor/init.py 文件也需要修改
同时需要添加对应的docs的中文文档,参考这个 http://agroup.baidu.com/paddlepaddle/md/article/3821189,以及这个PR PaddlePaddle/docs#3526 生成相应的文档预览。 |
Sorry to inform you that de0a6e9's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
OPs
Describe
Add expm1 op and test