get_device_name

dragon.vm.torch.cuda.get_device_name(device=None)[source]

Return the name of specified device.

If device is None, the current device will be selected.

Parameters:
Returns:

str The device name.