mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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:
parent
100ec0b34a
commit
70d12ccc3f
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user