torch.cuda.can_device_access_peer torch.cuda.can_device_access_peer(device, peer_device)[源代码] 检查两个设备之间是否可以互相访问。 返回类型 bool