ReLU
- class torch.nn.modules.activation.ReLU(inplace=False)
Applies the rectified linear unit function element-wise.
Applies the rectified linear unit function element-wise.
inplace (bool) – can optionally do the operation in-place. Default: False
Input: , where means any number of dimensions.
Output: , same shape as the input.

Examples:
>>> m = nn.ReLU()
>>> input = torch.randn(2)
>>> output = m(input)
An implementation of CReLU - https://arxiv.org/abs/1603.05201
>>> m = nn.ReLU()
>>> input = torch.randn(2).unsqueeze(0)
>>> output = torch.cat((m(input), m(-input)))
Return the extra representation of the module.
Runs the forward pass.