torch.list_devices
function list_devices(): string[]List all registered devices (both built-in and custom).
Returns
string[]– Array of device namesfunction list_devices(): string[]List all registered devices (both built-in and custom).
string[]– Array of device names