Remove duplicated mish activation function (#7856)
* Remove duplicated mish activation function * Update activations.py
This commit is contained in:
parent
f5c45a19e6
commit
c65863ce53
|
@ -66,7 +66,3 @@ def get_activation(activation_string):
|
|||
return ACT2FN[activation_string]
|
||||
else:
|
||||
raise KeyError("function {} not found in ACT2FN mapping {}".format(activation_string, list(ACT2FN.keys())))
|
||||
|
||||
|
||||
def mish(x):
|
||||
return x * torch.tanh(torch.nn.functional.softplus(x))
|
||||
|
|
Loading…
Reference in New Issue