Skip to content

主框架activation补充 #7305

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Echo-Nie
Copy link
Contributor

@Echo-Nie Echo-Nie commented May 9, 2025

Description

该PR是针对上一个PR的补充:#7297
将主框架中的 activation.rst 中的激活函数列表,和源码activation源码进行对齐。目前develop分支中的activation中的函数比之前多了很多,而且均能使用:

image

缺失以下函数

* :ref:`cn_api_paddle_nn_functional_celu`
* :ref:`cn_api_paddle_nn_functional_glu`
* :ref:`cn_api_paddle_nn_functional_gumbel_softmax`
* :ref:`cn_api_paddle_nn_functional_hardsigmoid`
* :ref:`cn_api_paddle_nn_functional_hardswish`
* :ref:`cn_api_paddle_nn_functional_hardtanh`
* :ref:`cn_api_paddle_nn_functional_log_softmax`
* :ref:`cn_api_paddle_nn_functional_mish`
* :ref:`cn_api_paddle_nn_functional_rrelu`
* :ref:`cn_api_paddle_nn_functional_selu`
* :ref:`cn_api_paddle_nn_functional_silu`
* :ref:`cn_api_paddle_nn_functional_softmax`

Inplace版本

另外还有 Inplace版本的,但是Inplace版本的好像不该放在这里面吧?所以就没有添加

elu_
leaky_relu_
relu_
softmax_
thresholded_relu_

activation源代码链接:https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/nn/functional/activation.py

@DrRyanHuang @sunzhongkai588 @luotao1

Copy link

paddle-bot bot commented May 9, 2025

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

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants