.. py:function:: paddle.sparse.nn.functional.leaky_relu(x, negative_slope=0.01, name=None)
稀疏 leaky_relu 激活函数,要求 输入 :attr:`x` 为 SparseCooTensor 或 SparseCsrTensor 。
leaky_relu(x)= \left\{ \begin{array}{rcl} x, & & if \ x >= 0 \\ negative\_slope * x, & & otherwise \\ \end{array} \right.
其中,x 为输入的 Tensor。
- x (Tensor) - 输入的稀疏 Tensor,可以是 SparseCooTensor 或 SparseCsrTensor,数据类型为 float32、float64。
- negative_slope (float,可选) - x < 0 时的斜率。默认值为 0.01。
- name (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
多维稀疏 Tensor, 数据类型和稀疏格式与 :attr:`x` 相同。
COPY-FROM: paddle.sparse.nn.functional.leaky_relu