mindspore.device_context.ascend.op_tuning.op_compile

View Source On Gitee
mindspore.device_context.ascend.op_tuning.op_compile(value)[source]

Whether to select online compilation.The default settings by the framework are online compilation for static shape, and compiled operator binary files for dynamic shape. The default settings may change in the future. For detailed information, please refer to Ascend community .

Parameters

value (bool) –

Whether to select online compilation or not.

  • True: online compilation is prioritized.

  • False: compiled operator binary files are prioritized to improve compilation performance.

Examples

>>> import mindspore as ms
>>> ms.device_context.ascend.op_tuning.op_compile(True)