MCPcopy Create free account
hub / github.com/pytorch/pytorch / manager_path

Function manager_path

torch/__init__.py:1414–1421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1412################################################################################
1413
1414def manager_path():
1415 if _running_with_deploy() or platform.system() == 'Windows':
1416 return b""
1417 path = get_file_path('torch', 'bin', 'torch_shm_manager')
1418 prepare_multiprocessing_environment(get_file_path('torch'))
1419 if not os.path.exists(path):
1420 raise RuntimeError("Unable to find torch_shm_manager at " + path)
1421 return path.encode('utf-8')
1422
1423from torch.amp import autocast
1424

Callers 1

__init__.pyFile · 0.85

Calls 4

_running_with_deployFunction · 0.85
get_file_pathFunction · 0.85
encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…