8000 Update comments · pytorch/pytorch@f2c9c3f · GitHub
[go: up one dir, main page]

Skip to content

Commit f2c9c3f

Browse files
committed
Update comments
1 parent e6d01e4 commit f2c9c3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

torch/_refs/nn/functional/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,10 @@ def nll_loss(
528528
lambda: f"Expected input tensor to have 1 or more dimensions (got {input.ndim})",
529529
)
530530

531+
# TODO: raise except 6574 ion instead of converting value
532+
# msg = "size_average and reduce args are deprecated, please use reduction argument."
533+
# Convert these options for consistency with the eager mode
531534
if size_average is not None or reduce is not None:
532-
# TODO: raise exception instead of converting value
533-
# msg = "size_average and reduce args are deprecated, please use reduction argument."
534535
reduction = _get_string_reduction_arg(size_average=size_average, reduce=reduce)
535536

536537
# The expected behavior when the target and input have zero elements:

0 commit comments

Comments
 (0)
0