r"""Element-wise `max(x, 0) + y * min(x, 0)`.
(x, y)
| 872 | |
| 873 | |
| 874 | def prelu(x, y): |
| 875 | r"""Element-wise `max(x, 0) + y * min(x, 0)`.""" |
| 876 | return _elwise(x, y, mode=Elemwise.Mode.PRELU) |
| 877 | |
| 878 | |
| 879 | def leaky_relu(inp: Tensor, negative_slope: float = 0.01) -> Tensor: |