mindspore/docs/api/api_python/mint/mindspore.mint.nn.ReLU.rst

28 lines
532 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.mint.nn.ReLU
======================
.. py:class:: mindspore.mint.nn.ReLU
逐元素计算ReLU修正线性单元激活函数。
.. math::
\text{ReLU}(input) = (input)^+ = \max(0, input),
逐元素求 :math:`\max(0, input)`
.. note::
输出为负的神经元会被抑制,正值保持不变。
ReLU激活函数图
.. image:: ../images/ReLU.png
:align: center
输入:
- **input** (Tensor) - 输入 tensor。
输出:
Tensor。