XPUPlace

paddle.device. XPUPlace ( dev_id ) [source]

Return a Baidu Kunlun Place

Parameters

dev_id (int) – Baidu Kunlun device id

Examples

>>> 

>>> import paddle
>>> paddle.device.set_device('xpu')
>>> place = paddle.device.XPUPlace(0)