get_device_capability¶
- dragon.vm.torch.cuda.- get_device_capability(device=None)[source]¶
- Return the capability of specified device. - If - deviceis None, the current device will be selected.- Parameters:
- device (Union[dragon.vm.torch.device, int], optional) – The device to query.
 
 - Returns:
- Tuple[int, int] – The major and minor number. 
 
