get_all_custom_device_type¶
- paddle.device. get_all_custom_device_type ( ) [source]
-
Get all available custom device types.
- Returns
-
A list of all available custom device types.
Examples
>>> import paddle >>> paddle.device.get_all_custom_device_type() >>> # Case 1: paddlepaddle-gpu package installed, and no custom device registered. >>> # Output: None >>> # Case 2: paddlepaddle-gpu package installed, and custom device 'CustomCPU' and 'CustomGPU' is registered. >>> # Output: ['CustomCPU', 'CustomGPU']