XPUPlace

paddle.device. XPUPlace ( dev_id ) [source]

Return a Baidu Kunlun Place

Parameters

dev_id (int) – Baidu Kunlun device id

Examples

System Message: ERROR/3 (/usr/local/lib/python3.8/site-packages/paddle/device.py:docstring of paddle.device.XPUPlace, line 8)

Error in “code-block” directive: maximum 1 argument(s) allowed, 4 supplied.

.. code-block:: python
    # required: xpu

    import paddle
    place = paddle.XPUPlace(0)