Shortcuts

torch.nn.functional.smooth_l1_loss

torch.nn.functional.smooth_l1_loss(input, target, size_average=None, reduce=None, reduction='mean', beta=1.0)[源码]

计算平滑 L1 损失。

如果绝对逐元素误差低于beta,函数使用平方项,否则使用L1项。

详情请参见 SmoothL1Loss

Return type

张量

优云智算