Translations:Softmax Function/17/zh: Difference between revisions
(Batch translate Softmax Function unit 17 → zh) Tag: translation |
(Batch translate Softmax Function unit 17 → zh) Tag: translation |
||
| Line 1: | Line 1: | ||
softmax 的朴素实现当 logits 较大时可能会溢出(例如,<math>e^{1000}</math> 在浮点数中为无穷大)。标准的修复方法是减去最大的 logit: | |||
Revision as of 22:04, 27 April 2026
softmax 的朴素实现当 logits 较大时可能会溢出(例如,$ e^{1000} $ 在浮点数中为无穷大)。标准的修复方法是减去最大的 logit: