Skip to content

Commit

Permalink
warnings.filterwarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Mar 14, 2024
1 parent 9e43830 commit 56da0e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unittests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os.path
import warnings
from typing import NamedTuple

import numpy
Expand Down Expand Up @@ -28,6 +29,10 @@

_reference_cachier = cachier(cache_dir=_PATH_TEST_CACHE, separate_files=True)

# ignore FutureWarnings while testing (mainly appearing with DDP runs)
warnings.filterwarnings("ignore", category=FutureWarning, module="sklearn.*")
warnings.filterwarnings("ignore", category=FutureWarning, module="transformers.*")


if torch.cuda.is_available():
torch.backends.cuda.matmul.allow_tf32 = False
Expand Down

0 comments on commit 56da0e2

Please sign in to comment.