--op_precision_mode

Description

Sets the precision mode of an operator. You can use this option to set different precision modes for different operators.

See Also

This option is mutually exclusive with --op_select_implmode and --optypelist_for_implmode. If they are used together, only the mode specified by --op_precision_mode takes effect.

Arguments

Argument: directory (including the file name) of the .ini configuration file. The following precision mode is supported:

  • high_precision
  • high_performance
  • support_out_of_bound_index: indicates that the out-of-bounds verification is performed on the indices of the gather, scatter, and segment operators. The verification deteriorates the operator execution performance.

You can view the precision or performance mode supported by an operator in the opp/built-in/op_impl/ai_core/tbe/impl_mode/all_ops_impl_mode.ini file in the file storage path with the CANN software installed.

Format: The directory (including the file name) can contain letters, digits, underscores (_), hyphens (-), periods (.), and Chinese characters.

Restrictions:

Suggestions and Benefits

  • You are advised not to set this option. It is used if you need to adjust the precision of a specific operator using the .ini configuration file in the case that you fail to obtain optimal network performance or accuracy in high-performance or high-precision mode.
  • You are advised to load the .ini configuration file saved by using the --op_select_implmode option. For details, see Suggestions and Benefits.

Examples

Build the operator precision mode configuration file op_precision.ini and set the operator precision mode in the file. Set the precision mode of an operator each row. The following is an example:

optype1=high_precision
optype2=high_performance

Upload the configured op_precision.ini file to any directory (for example, ${HOME}/conf) on the server where AOE is located.

--op_precision_mode=${HOME}/conf/op_precision.ini

Dependencies and Restrictions

None