get_device_capability

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

Return the capability of specified device.

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

Parameters:
Returns:

Tuple[int, int] – The major and minor number.