PReLU
- class torch.nn.PReLU(num_parameters=1, init=0.25, device=None, dtype=None)
Applies the element-wise PReLU function.
Applies the element-wise PReLU function.
or
Here is a learnable parameter. When called without arguments, nn.PReLU() uses a single parameter across all input channels. If called with nn.PReLU(nChannels), a separate is used for each input channel.
Input: where * means, any number of additional dimensions.
Output: , same shape as the input.
weight (Tensor) – the learnable weights of shape (num_parameters).

Examples:
>>> m = nn.PReLU()
>>> input = torch.randn(2)
>>> output = m(input)
Return the extra representation of the module.
Runs the forward pass.
Resets parameters based on their initialization used in __init__.