mirror of
https://github.com/ROCm/jax.git
synced 2025-04-18 21:06:06 +00:00
softmax: document NaN outputs for infinite inputs
This commit is contained in:
parent
851a05dc1b
commit
75f570e8b0
@ -512,6 +512,10 @@ def log_softmax(x: ArrayLike,
|
||||
Returns:
|
||||
An array.
|
||||
|
||||
Note:
|
||||
If any input values are ``+inf``, the result will be all ``NaN``: this reflects the
|
||||
fact that ``inf / inf`` is not well-defined in the context of floating-point math.
|
||||
|
||||
See also:
|
||||
:func:`softmax`
|
||||
"""
|
||||
@ -557,6 +561,10 @@ def softmax(x: ArrayLike,
|
||||
Returns:
|
||||
An array.
|
||||
|
||||
Note:
|
||||
If any input values are ``+inf``, the result will be all ``NaN``: this reflects the
|
||||
fact that ``inf / inf`` is not well-defined in the context of floating-point math.
|
||||
|
||||
See also:
|
||||
:func:`log_softmax`
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user