is_compiled_with_mlu

paddle.device. is_compiled_with_mlu ( ) [source]

Whether paddle was built with WITH_MLU=ON to support Cambricon MLU

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

Examples

# required: mlu

import paddle
support_mlu = paddle.device.is_compiled_with_mlu()