Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Apr 13, 2021
1 parent 072cd12 commit 4b69a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytorch_lightning/utilities/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import logging
import os
import warnings
from functools import wraps
from functools import wraps, partial
from typing import Any, Optional, Union

import torch
Expand Down Expand Up @@ -81,6 +81,7 @@ def _debug(*args, **kwargs):
rank_zero_warn = rank_zero_only(_warn)
rank_zero_deprecation = partial(rank_zero_warn, category=DeprecationWarning)


def find_free_network_port() -> int:
"""
Finds a free port on localhost.
Expand Down

0 comments on commit 4b69a92

Please sign in to comment.