Skip to content

Commit a31ff81

Browse files
committed
test: update assert
1 parent 1c1b3b0 commit a31ff81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ addlicense-install: go-install
8383

8484
pytest: pytest-install
8585
cd tests && \
86-
$(PYTHON) -m pytest --verbose --color=yes --maxfail=16 \
86+
$(PYTHON) -m pytest --verbose --color=yes --maxfail=32 \
8787
--numprocesses=logical --maxprocesses=8 --durations=0 \
8888
--cov="../$(PROJECT_PATH)" --cov-report=term-missing \
8989
.

tests/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ def assert_all_close(
9494
) -> None:
9595

9696
assert torch.allclose(input, other, rtol=rtol, atol=atol, equal_nan=equal_nan), (
97-
f'L_inf = {(input - other).abs().max()}, '
97+
f'L_inf = {(input - other).abs().max():.5g}, '
9898
f'fail_rate = {torch.logical_not((input - other).abs() <= atol + rtol * other.abs()).float().mean()}'
9999
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy