mindspore.ops.SmoothL1Loss

class mindspore.ops.SmoothL1Loss(beta=1.0, reduction='none')
prim = ops.SmoothL1Loss(beta, reduction)
out = prim(prediction, target)

is equivalent to

ops.smooth_l1_loss(prediction, target, beta, reduction)

Refer to mindspore.ops.smooth_l1_loss() for more details.