MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _bind_guard

Function _bind_guard

tensorpack/dataflow/parallel.py:53–61  ·  view source on GitHub ↗
(sock, name)

Source from the content-addressed store, hash-verified

51
52
53def _bind_guard(sock, name):
54 try:
55 sock.bind(name)
56 except zmq.ZMQError:
57 logger.error(
58 "ZMQError in socket.bind('{}'). Perhaps you're \
59using pipes on a non-local file system. See documentation of MultiProcessRunnerZMQ \
60for more information.".format(name))
61 raise
62
63
64def _get_pipe_name(name):

Callers 3

reset_stateMethod · 0.85
reset_stateMethod · 0.85
reset_stateMethod · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected