Skip to content

Commit b3cbb75

Browse files
authored
Change error string in functional.py (#694)
1 parent fdb024b commit b3cbb75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

segmentation_models_pytorch/metrics/functional.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_stats(
121121
)
122122

123123
if torch.is_floating_point(output) and mode == "multiclass":
124-
raise ValueError(f"For ``multiclass`` mode ``target`` should be one of the integer types, got {output.dtype}.")
124+
raise ValueError(f"For ``multiclass`` mode ``output`` should be one of the integer types, got {output.dtype}.")
125125

126126
if mode not in {"binary", "multiclass", "multilabel"}:
127127
raise ValueError(f"``mode`` should be in ['binary', 'multiclass', 'multilabel'], got mode={mode}.")

0 commit comments

Comments
 (0)