[CI][RFC] Replace black-jupyter with ruff-format (#37210)
Co-authored-by: Alison Shao <a.shao@wustl.edu>
This commit is contained in:
co-authored by
Alison Shao
parent
2641e427be
commit
28262c20df
@@ -92,7 +92,7 @@ def parity_b():
|
||||
if torch.equal(
|
||||
ref.contiguous().view(torch.uint16), got2.contiguous().view(torch.uint16)
|
||||
):
|
||||
print(f" {fmt}: bit-exact=True ({len(data)/1e6:.2f}MB)")
|
||||
print(f" {fmt}: bit-exact=True ({len(data) / 1e6:.2f}MB)")
|
||||
else:
|
||||
d = (ref.float() - got2.float()).abs()
|
||||
print(
|
||||
|
||||
@@ -156,5 +156,5 @@ def test_resize_bench():
|
||||
rs_resize(arr, tw, th)
|
||||
t_rs = (time.perf_counter() - t0) / 10 * 1e3
|
||||
print(
|
||||
f"\nresize 1920x1080->{tw}x{th}: PIL {t_pil:.1f}ms rust {t_rs:.1f}ms ({t_pil/t_rs:.1f}x)"
|
||||
f"\nresize 1920x1080->{tw}x{th}: PIL {t_pil:.1f}ms rust {t_rs:.1f}ms ({t_pil / t_rs:.1f}x)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user