warp.device_from_torch#
- warp.device_from_torch(torch_device)[source]#
Return the Warp device corresponding to a Torch device.
- Parameters:
torch_device (torch.device | str) – Torch device identifier
- Raises:
RuntimeError – Torch device does not have a corresponding Warp device
- Return type: