r"""Element-wise LeakyReLU function Refer to :class:`~.module.LeakyReLU` for more information.
(inp: Tensor, negative_slope: float = 0.01)
| 877 | |
| 878 | |
| 879 | def leaky_relu(inp: Tensor, negative_slope: float = 0.01) -> Tensor: |
| 880 | r"""Element-wise LeakyReLU function |
| 881 | |
| 882 | Refer to :class:`~.module.LeakyReLU` for more information. |
| 883 | """ |
| 884 | return _elwise(inp, negative_slope, mode=Elemwise.Mode.PRELU) |
| 885 | |
| 886 | |
| 887 | def silu(x): |