mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-09 10:46:39 +08:00
update the formula of smooth_l1_loss (#1986)
This commit is contained in:
parent
7b7e2352cd
commit
65a38c452b
@ -352,7 +352,7 @@ def smooth_l1_loss(
|
|||||||
.. math::
|
.. math::
|
||||||
|
|
||||||
l = \begin{cases}
|
l = \begin{cases}
|
||||||
0.5 (x - y)^2, & \text{if } (x - y) < \beta \\
|
0.5 (x - y)^2 / \beta, & \text{if } |x - y| < \beta \\
|
||||||
|x - y| - 0.5 \beta, & \text{otherwise}
|
|x - y| - 0.5 \beta, & \text{otherwise}
|
||||||
\end{cases}
|
\end{cases}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user