Mish: A Self Regularized Non-Monotonic Neural Activation Function (https://arxiv.org/abs/1908.08681)
(x)
| 7 | |
| 8 | |
| 9 | def mish(x): |
| 10 | """Mish: A Self Regularized Non-Monotonic Neural Activation Function (https://arxiv.org/abs/1908.08681)""" |
| 11 | return x * torch.tanh(F.softplus(x)) |
| 12 | |
| 13 | |
| 14 | class PSBatchNorm2d(nn.BatchNorm2d): |
nothing calls this directly
no outgoing calls
no test coverage detected