(x)
| 136 | |
| 137 | |
| 138 | def mish(x): |
| 139 | return x * torch.tanh(nn.functional.softplus(x)) |
| 140 | |
| 141 | |
| 142 | ACT2FN = {"gelu": gelu, "relu": torch.nn.functional.relu, "swish": swish, "gelu_new": gelu_new, "mish": mish} |
nothing calls this directly
no outgoing calls
no test coverage detected