Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jan 13, 2022
1 parent 0e87d9a commit 6a5e27e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions torchmetrics/utilities/prints.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from functools import partial, wraps
from typing import Any, Callable

from _warnings import warn

from torchmetrics import _logger as log


Expand Down Expand Up @@ -49,4 +47,4 @@ def _debug(*args: Any, **kwargs: Any) -> None:
rank_zero_debug = rank_zero_only(_debug)
rank_zero_info = rank_zero_only(_info)
rank_zero_warn = rank_zero_only(_warn)
_future_warning = partial(warn, category=FutureWarning)
_future_warning = partial(warnings.warn, category=FutureWarning)

0 comments on commit 6a5e27e

Please sign in to comment.