Skip to content

Commit

Permalink
warning handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitator committed Jun 28, 2020
1 parent c3fcb48 commit d6a4b84
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- `global_*` counters in `Runner` ([#858](https://github.com/catalyst-team/catalyst/pull/858))
- EarlyStoppingCallback considers first epoch as bad
([#854](https://github.com/catalyst-team/catalyst/issues/854))
- annoying numpy warning
([#860](https://github.com/catalyst-team/catalyst/pull/860))


## [20.06] - 2020-06-04
Expand Down
7 changes: 7 additions & 0 deletions catalyst/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
from catalyst.__version__ import __version__ # noqa: F401

import warnings

warnings.filterwarnings(
"ignore", message="numpy.dtype size changed", append=False
)
warnings.filterwarnings("once", append=True)
2 changes: 1 addition & 1 deletion catalyst/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "20.06"
__version__ = "20.07"
4 changes: 0 additions & 4 deletions catalyst/utils/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import random
import socket
import subprocess
import warnings

import deprecation

Expand All @@ -16,9 +15,6 @@
from catalyst.utils.misc import get_fn_default_params
from catalyst.utils.torch import get_available_gpus

warnings.simplefilter("once")
warnings.filterwarnings("once")


def check_ddp_wrapped(model: nn.Module) -> bool:
"""
Expand Down
3 changes: 0 additions & 3 deletions catalyst/utils/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
)
from catalyst.utils.misc import get_utcnow_time

warnings.simplefilter("once")
warnings.filterwarnings("once")


def import_module(expdir: pathlib.Path):
"""
Expand Down

0 comments on commit d6a4b84

Please sign in to comment.