Smooth l1 loss ℓ(x,y)=L={l1,...,lN}T With ln={0.5(xn−yn)2/beta,if |xn−yn|<beta|xn−yn|−0.5∗beta,otherwise If reduction is not none, then: ℓ(x,y)={mean(L),if reduction=`mean';sum(L),if reduction=`sum'. 等有机会 plot 一下。