Translations:Softmax Function/17/zh: Difference between revisions

    From Marovi AI
    (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:
    当 {{Term|logits}} 较大时,softmax 的朴素实现可能溢出(例如,<math>e^{1000}</math> 在浮点数中为无穷大)。标准的修正是减去最大的 {{Term|logits|logit}}:

    Latest revision as of 23:41, 27 April 2026

    Information about message (contribute)
    This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
    Message definition (Softmax Function)
    A naive implementation of softmax can overflow when {{Term|logits}} are large (e.g., <math>e^{1000}</math> is infinite in floating point). The standard fix subtracts the maximum {{Term|logits|logit}}:

    logits 较大时,softmax 的朴素实现可能溢出(例如,$ e^{1000} $ 在浮点数中为无穷大)。标准的修正是减去最大的 logit