mindspore.device_context.ascend.op_precision.conv_allow_hf32

View Source On Gitee
mindspore.device_context.ascend.op_precision.conv_allow_hf32(value)[source]

Whether to convert FP32 to HF32 for Conv operators. CANN enables FP32 to HF32 for Conv operators by default. For detailed information, please refer to Ascend community .

Note

  • This is an experimental prototype that is subject to change and/or deletion.

Parameters

value (bool) – Whether to convert FP32 to HF32 for Conv operators.

Examples

>>> import mindspore as ms
>>> ms.device_context.ascend.op_precision.conv_allow_hf32(True)