[Torch] Fix error message formatting in fp8 comparison logic (#153647)

Summary: Using `\` includes all the tabs from the next line in the error message.

Test Plan: Nothing, simply error message fixing

Reviewed By: exclamaforte

Differential Revision: D74539234

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153647
Approved by: https://github.com/exclamaforte
This commit is contained in:
Pat Vignola 2025-05-27 02:51:05 +00:00 committed by PyTorch MergeBot
parent 100ec0b34a
commit 70d12ccc3f

View File

@ -878,8 +878,8 @@ class TensorLikePair(Pair):
if rtol != 0.0 or atol != 0.0:
raise ErrorMeta(
AssertionError,
f"Rtol={rtol} and atol={atol} are not supported for bitwise comparison of low \
dimensional floats. Please use rtol=0.0 and atol=0.0",
f"Rtol={rtol} and atol={atol} are not supported for bitwise comparison of low"
" dimensional floats. Please use rtol=0.0 and atol=0.0.",
)
return self._compare_regular_values_close(