same sentence different padding length result different embedding.
I use nn.Softmax(dim=-1) to softmax. I find different outputs.
```
a = [-3.6180e-01,  6.6926e-01,  1.2248e+01, -9.5795e-01]
b = [-3.6180e-01,  6.6926e-01,  1.2248e+01, -9.5795e-01, -9.5795e-01]
```
softmax(a) = [3.3403e-06, 9.366**2**e-06, 9.999**9**e-01, 1.8402e-06]
softmax(b) =[3.3403e-06, 9.366**1**e-06, 9.999**8**e-01, 1.8402e-06, 1.8402e-06]
The different softmax results result in different sentence embedding, sometimes the embedding differ a lot.I test transeformers the question cant repoduce. This bug appears in  transformers  modified by our company.  Any help is appreciate!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.