Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 369 Bytes

is_compiled_with_npu_cn.rst

File metadata and controls

17 lines (11 loc) · 369 Bytes

is_compiled_with_npu

检查 whl 包是否可以被用来在 NPU 上运行模型。

返回

bool,支持 NPU 则为 True,否则为 False。

代码示例

COPY-FROM: paddle.device.is_compiled_with_npu