update the formula of smooth_l1_loss (#1986)

This commit is contained in:
jiyzhang 2025-03-21 21:25:23 +08:00 committed by GitHub
parent 7b7e2352cd
commit 65a38c452b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,7 +352,7 @@ def smooth_l1_loss(
.. math::
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}
\end{cases}