Home
last modified time | relevance | path

Searched refs:pick_unused_port (Results 1 – 23 of 23) sorted by relevance

/external/python/portpicker/src/tests/
Dportpicker_test.py59 port = portpicker.pick_unused_port()
74 port = portpicker.pick_unused_port()
92 port = portpicker.pick_unused_port(portserver_address=addr)
185 self.assertEqual(portpicker.pick_unused_port(), 12345)
186 self.assertEqual(portpicker.pick_unused_port(), 23456)
188 self.assertEqual(portpicker.pick_unused_port(), 12345)
195 port = portpicker.pick_unused_port()
214 port = portpicker.pick_unused_port()
226 self.assertEqual(portpicker.pick_unused_port(), reserved_port)
227 self.assertNotEqual(portpicker.pick_unused_port(), reserved_port)
[all …]
/external/tensorflow/tensorflow/python/distribute/experimental/rpc/
Drpc_ops_test.py65 port = portpicker.pick_unused_port()
105 port = portpicker.pick_unused_port()
150 port = portpicker.pick_unused_port()
206 port = portpicker.pick_unused_port()
234 port = portpicker.pick_unused_port()
276 port = portpicker.pick_unused_port()
320 port = portpicker.pick_unused_port()
340 port = portpicker.pick_unused_port()
406 port = portpicker.pick_unused_port()
507 port = portpicker.pick_unused_port()
[all …]
/external/tensorflow/tensorflow/python/data/experimental/service/
Dserver_lib_test.py37 def pick_unused_port(): function
47 port = portpicker.pick_unused_port()
64 port = pick_unused_port()
101 port = pick_unused_port()
/external/tensorflow/tensorflow/python/distribute/
Dmulti_worker_test_base.py53 pick_unused_port = test_util.pick_unused_port variable
69 worker_ports = [pick_unused_port() for _ in range(num_workers)]
70 ps_ports = [pick_unused_port() for _ in range(num_ps)]
78 cluster_dict['evaluator'] = ['localhost:%s' % pick_unused_port()]
80 cluster_dict[chief_name] = ['localhost:%s' % pick_unused_port()]
401 cluster_spec['chief'] = ['localhost:%s' % pick_unused_port()]
404 'localhost:%s' % pick_unused_port() for _ in range(num_workers)
408 'localhost:%s' % pick_unused_port() for _ in range(num_ps)
411 cluster_spec['evaluator'] = ['localhost:%s' % pick_unused_port()]
Ddistribute_coordinator_test.py193 cluster_spec[CHIEF] = ["localhost:%s" % test_util.pick_unused_port()]
196 "localhost:%s" % test_util.pick_unused_port()
201 "localhost:%s" % test_util.pick_unused_port() for _ in range(num_ps)
204 cluster_spec[EVALUATOR] = ["localhost:%s" % test_util.pick_unused_port()]
Dparameter_server_strategy_v2_test.py657 "localhost:%d" % multi_worker_test_base.pick_unused_port()
675 chief_ports = [multi_worker_test_base.pick_unused_port() for _ in range(3)]
/external/tensorflow/tensorflow/python/profiler/
Dprofiler_client_test.py29 test_port = portpicker.pick_unused_port()
40 test_port = portpicker.pick_unused_port()
/external/python/portpicker/
DChangeLog.md30 * Fix a race condition in `pick_unused_port()` involving the free ports set.
34 * Adds an optional `portserver_address` parameter to `pick_unused_port()` so
36 * `pick_unused_port()` now raises `NoFreePortFoundError` when no available
DREADME.md10 This module provides a pure Python `pick_unused_port()` function. It can also be
21 Unless you are using a port server, subsequent calls to `pick_unused_port()` to
48 test_port = portpicker.pick_unused_port()
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/service/
Dmulti_process_cluster.py86 port = test_util.pick_unused_port()
112 port=test_util.pick_unused_port(),
124 port=test_util.pick_unused_port(),
Dfault_tolerance_test.py177 dispatcher_port = portpicker.pick_unused_port()
/external/python/portpicker/src/
Dportpicker.py145 def pick_unused_port(pid=None, portserver_address=None): function
184 PickUnusedPort = pick_unused_port # legacy API. pylint: disable=invalid-name
328 port = pick_unused_port(pid=int(argv[1]) if len(argv) > 1 else None)
D__init__.py145 def pick_unused_port(pid=None, portserver_address=None): function
184 PickUnusedPort = pick_unused_port # legacy API. pylint: disable=invalid-name
328 port = pick_unused_port(pid=int(argv[1]) if len(argv) > 1 else None)
/external/tensorflow/tensorflow/python/distribute/coordinator/
Dmetric_utils_test.py40 'localhost:%d' % multi_worker_test_base.pick_unused_port()
Dfault_tolerance_test.py129 "localhost:%d" % multi_worker_test_base.pick_unused_port()
Dcluster_coordinator_test.py489 'localhost:%d' % test_util.pick_unused_port()
/external/python/mobly/mobly/
Dutils.py597 port = portpicker.pick_unused_port()
605 port = portpicker.pick_unused_port()
/external/tensorflow/tensorflow/python/profiler/integration_test/
Dprofiler_api_test.py118 port = portpicker.pick_unused_port()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client_backend_independent_test.py136 port = portpicker.pick_unused_port()
/external/tensorflow/tensorflow/python/eager/
Dremote_test.py672 addr = 'localhost:%s' % portpicker.pick_unused_port()
680 addr = 'localhost:%s' % portpicker.pick_unused_port()
/external/python/apitools/apitools/base/protorpclite/
Dtest_util.py619 def pick_unused_port(): function
/external/tensorflow/tensorflow/python/debug/lib/
Dgrpc_debug_test_server.py394 server_port = portpicker.pick_unused_port()
/external/tensorflow/tensorflow/python/framework/
Dtest_util.py3692 def pick_unused_port(): function
3700 port = portpicker.pick_unused_port()
3768 worker_ports = [pick_unused_port() for _ in range(num_workers)]
3769 ps_ports = [pick_unused_port() for _ in range(num_ps)]