MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / mish

Function mish

models/nets/wrn_var.py:9–11  ·  view source on GitHub ↗

Mish: A Self Regularized Non-Monotonic Neural Activation Function (https://arxiv.org/abs/1908.08681)

(x)

Source from the content-addressed store, hash-verified

7
8
9def 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
14class PSBatchNorm2d(nn.BatchNorm2d):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected