File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
pytorch_lightning/utilities Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 2525from pytorch_lightning .utilities .rank_zero import rank_zero_only # noqa: F401
2626from pytorch_lightning .utilities .rank_zero import rank_zero_deprecation
2727from pytorch_lightning .utilities .rank_zero import rank_zero_info as new_rank_zero_info
28+ from pytorch_lightning .utilities .rank_zero import rank_zero_warn as new_rank_zero_warn
2829
2930if _TPU_AVAILABLE :
3031 import torch_xla .core .xla_model as xm
@@ -281,8 +282,6 @@ def register_ddp_comm_hook(
281282 ... ddp_comm_wrapper=default.fp16_compress_wrapper,
282283 ... )
283284 """
284- from pytorch_lightning .utilities import rank_zero_warn
285-
286285 if ddp_comm_hook is None :
287286 return
288287 # inform mypy that ddp_comm_hook is callable
You can’t perform that action at this time.
0 commit comments