is_compiled_with_xpu

paddle.device. is_compiled_with_xpu ( ) [source]

Whether paddle was built with WITH_XPU=ON to support Baidu Kunlun

Returns (bool): whether paddle was built with WITH_XPU=ON

Examples

>>> import paddle
>>> support_xpu = paddle.device.is_compiled_with_xpu()