Rate this Page
★ ★ ★ ★ ★

torch.xpu.can_device_access_peer#

torch.xpu.can_device_access_peer(device, peer)[source]#

Query whether a device can access a peer device’s memory.

Parameters:
Returns:

True if device can access peer, False otherwise.

Return type:

bool