--status_check

Applicability

Product

Supported (Yes/No)

Atlas 350 Accelerator Card

x

Atlas A3 training product / Atlas A3 inference product

x

Atlas A2 training product / Atlas A2 inference product

x

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Determines whether to add overflow/underflow detection logic during operator build.

If the model accuracy is not satisfactory and an operator computation overflow/underflow might occur in the model, include this option to add overflow/underflow detection logic during operator build and rebuild the model.

See Also

  • You are advised to use this option together with --op_debug_level. In this way, you can check whether the overflow/underflow detection logic is added to the generated .cce file. The following is a code example:
      if (status_overflow[0]) {
        xxxxxx
    }
  • When --mode is set to 7, the overflow/underflow detection feature is not supported.

Argument

  • 0 (default): Disables the overflow/underflow detection logic.
  • 1: Enables the overflow/underflow detection logic.

Example

--status_check=1

Restrictions

When --status_check is used, the overflow/underflow detection logic is added to the *.cce operator file generated after model build. To check overflow/underflow operators, use this option together with the aclInit API during model inference. Enable dump_debug in the JSON configuration file passed to this API. For details about the API, see "aclInit".