Skip to content

Commit 65a6bde

Browse files
committed
Minor fix
1 parent 4e83c96 commit 65a6bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metatomic-torch/src/outputs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static void validate_gradient(
195195
if (gradient->samples()->names() != expected_samples_names) {
196196
C10_THROW_ERROR(ValueError,
197197
"invalid samples for '" + name + "' output '" + parameter + "' gradients: "
198-
"expected the names to be ['sample'], got " +
198+
"expected the names to be " + join_names(expected_samples_names) + ", got " +
199199
join_names(gradient->samples()->names())
200200
);
201201
}

0 commit comments

Comments
 (0)