get_device_capability
- paddle.device. get_device_capability ( device: _CustomPlaceLike | None = None ) tuple[int, int] [source]
-
Return the device_capability of given device.
- Parameters
-
device (|paddle.CustomPlace|int|str|None, optional) – The device, the id of the device or the string name of device like npu:x’ which to get the properties of the device from. If device is None, the device is the current device. Default: None.
- Returns
-
The device_capability of given device.
- Return type
-
str
Examples
>>> >>> import paddle >>> cap = paddle.device.get_device_capability() >>> print(cap)
