Remove outdated warnings filter for `reduce_op` (#20102)

This commit is contained in:
awaelchli 2024-07-19 10:49:56 +02:00 committed by GitHub
parent abcac66323
commit e6c26d2d22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 5 deletions

View File

@ -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: