Unverified Commit b45e65ef authored by Sam Shleifer's avatar Sam Shleifer Committed by GitHub
Browse files

Avoid deprecation warning for F.tanh (#5413)

parent 23231c0f
......@@ -575,7 +575,7 @@ class MobileBertPooler(nn.Module):
return first_token_tensor
else:
pooled_output = self.dense(first_token_tensor)
pooled_output = F.tanh(pooled_output)
pooled_output = torch.tanh(pooled_output)
return pooled_output
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment