From e6c26d2d22fc4678b2cf47d57697ebae68b09529 Mon Sep 17 00:00:00 2001 From: awaelchli Date: Fri, 19 Jul 2024 10:49:56 +0200 Subject: [PATCH] Remove outdated warnings filter for `reduce_op` (#20102) --- src/lightning/pytorch/trainer/trainer.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/lightning/pytorch/trainer/trainer.py b/src/lightning/pytorch/trainer/trainer.py index ce9801593e..406f686efe 100644 --- a/src/lightning/pytorch/trainer/trainer.py +++ b/src/lightning/pytorch/trainer/trainer.py @@ -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 @@ -82,10 +81,6 @@ from lightning.pytorch.utilities.types import ( 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: