is_compiled_with_xpu

paddle. is_compiled_with_xpu ( ) [source]

Whether this whl package can be used to run the model on XPU.

Returns (bool): support xpu or not.

Examples

import paddle.fluid as fluid
support_xpu = fluid.is_compiled_with_xpu()