Remove outdated warnings filter for `reduce_op` (#20102)
This commit is contained in:
parent
abcac66323
commit
e6c26d2d22
|
@ -23,7 +23,6 @@
|
||||||
import logging
|
import logging
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
import warnings
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any, Dict, Generator, Iterable, List, Optional, Union
|
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
|
from lightning.pytorch.utilities.warnings import PossibleUserWarning
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
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:
|
class Trainer:
|
||||||
|
|
Loading…
Reference in New Issue