Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 367 Bytes

is_compiled_with_cinn_cn.rst

File metadata and controls

17 lines (11 loc) · 367 Bytes

is_compiled_with_cinn

.. py:function:: paddle.device.is_compiled_with_cinn()

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

返回

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

代码示例

COPY-FROM: paddle.device.is_compiled_with_cinn