get_device_properties
- paddle.device. get_device_properties ( device: _CustomPlaceLike | None = None ) _customDeviceProperties [source]
-
Return the properties 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 properties of the device which include ASCII string
-
identifying device, major compute capability, minor compute capability, global memory available and the number of multiprocessors on the device.
- Return type
-
_customDeviceProperties
Examples
>>> # import paddle >>> # paddle.device.set_device('npu') >>> # paddle.device.get_device_properties('npu:0') >>> # _customDeviceProperties(name='', major=0, minor=0, total_memory=0MB, multi_processor_count=0) >>> # paddle.device.get_device_properties('npu') >>> # _customDeviceProperties(name='', major=0, minor=0, total_memory=0MB, multi_processor_count=0)