is_compiled_with_xpu

paddle.fluid.framework. 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()