warp.device_to_torch#
- warp.device_to_torch(warp_device)[source]#
Return the Torch device string corresponding to a Warp device.
- Parameters:
warp_device (Device | str | None) – An identifier that can be resolved to a
warp.Device.- Raises:
RuntimeError – The Warp device is not compatible with PyTorch.
- Return type: