Skip to content

Commit

Permalink
Remove outdated warnings filter for reduce_op (#20102)
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli authored Jul 19, 2024
1 parent abcac66 commit e6c26d2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lightning/pytorch/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import logging
import math
import os
import warnings
from contextlib import contextmanager
from datetime import timedelta
from typing import Any, Dict, Generator, Iterable, List, Optional, Union
Expand Down Expand Up @@ -82,10 +81,6 @@
from lightning.pytorch.utilities.warnings import PossibleUserWarning

log = logging.getLogger(__name__)
# warnings to ignore in trainer
warnings.filterwarnings(
"ignore", message="torch.distributed.reduce_op is deprecated, please use torch.distributed.ReduceOp instead"
)


class Trainer:
Expand Down

0 comments on commit e6c26d2

Please sign in to comment.