Skip to content

Commit

Permalink
Use F.l1_loss instead of refs
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 committed May 24, 2023
1 parent 55a9a2e commit c6ade94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_refs/nn/functional/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def smooth_l1_loss(
_check_reduction_value(reduction)

if beta == 0.0:
return l1_loss(
return torch.nn.functional.l1_loss(
input, target, size_average=size_average, reduce=reduce, reduction=reduction
)
else:
Expand Down

0 comments on commit c6ade94

Please sign in to comment.