get_available_custom_device

paddle.device. get_available_custom_device ( ) [source]

Get all available custom devices.

Returns

A list of all available custom devices.

Examples

>>> import paddle
>>> paddle.device.get_available_custom_device()

>>> # 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:0', 'CustomGPU:1']