We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa15dd commit 50a602aCopy full SHA for 50a602a
tests/ignite/conftest.py
@@ -93,6 +93,7 @@ def _destroy_dist_context():
93
def _find_free_port():
94
# Taken from https://github.com/facebookresearch/detectron2/blob/master/detectron2/engine/launch.py
95
import socket
96
+
97
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
98
sock.bind(("", 0))
99
port = sock.getsockname()[1]
0 commit comments