mindspore.ops.ReLU ================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/r2.2/docs/api/api_python/ops/mindspore.ops.ReLU.rst :alt: 查看源文件 .. py:class:: mindspore.ops.ReLU 线性修正单元激活函数(Rectified Linear Unit)。 更多参考详见 :func:`mindspore.ops.relu`。 输入: - **input_x** (Tensor) - 输入Tensor,其数据类型为数值型。 输出: Tensor,其shape和数据类型与输入一致。