mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-10-31 07:58:14 +08:00 
			
		
		
		
	update the formula of smooth_l1_loss (#1986)
This commit is contained in:
		| @@ -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} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jiyzhang
					jiyzhang