mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 21:49:24 +08:00
Revert "[BE]: Update ruff to 0.285 (#107519)"
This reverts commit 88ab3e43228b7440a33bf534cde493446a31538c. Reverted https://github.com/pytorch/pytorch/pull/107519 on behalf of https://github.com/ZainRizvi due to Sorry, but this PR breaks internal tests. @ezyang, can you please hep them get unblocked? It seems like one of the strings was prob accidentally modified ([comment](https://github.com/pytorch/pytorch/pull/107519#issuecomment-1688833480))
This commit is contained in:
@ -1410,8 +1410,8 @@ def assert_array_max_ulp(a, b, maxulp=1, dtype=None):
|
||||
ret = nulp_diff(a, b, dtype)
|
||||
if not np.all(ret <= maxulp):
|
||||
raise AssertionError(
|
||||
f"Arrays are not almost equal up to {maxulp:g} "
|
||||
f"ULP (max difference is {np.max(ret):g} ULP)"
|
||||
"Arrays are not almost equal up to {:g} "
|
||||
"ULP (max difference is {:g} ULP)".format(maxulp, np.max(ret))
|
||||
)
|
||||
return ret
|
||||
|
||||
|
Reference in New Issue
Block a user