MCPcopy Create free account
hub / github.com/SooLab/CGFormer / mish

Function mish

bert/modeling_bert.py:138–139  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

136
137
138def mish(x):
139 return x * torch.tanh(nn.functional.softplus(x))
140
141
142ACT2FN = {"gelu": gelu, "relu": torch.nn.functional.relu, "swish": swish, "gelu_new": gelu_new, "mish": mish}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected