Google length penalty function described in
[Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation](https://arxiv.org/abs/1609.08144.)
The penalty is equal to ((5 + sequenceLengths) / 6) ^ alpha, where all operations are performed element-wise.
Google length penalty function described in [Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation](https://arxiv.org/abs/1609.08144.) The penalty is equal to
((5 + sequenceLengths) / 6) ^ alpha
, where all operations are performed element-wise.
Length penalty weight (disabled if set to
0.0f
).