--status_check

Applicable Products

  • Ascend 950PR/Ascend 950DT: not supported
  • Atlas A3 training products/Atlas A3 inference products: not supported
  • Atlas A2 training products/Atlas A2 inference products: not supported
  • Atlas 200I/500 A2 inference products: supported
  • Atlas inference products: supported
  • Atlas training products: supported

Description

Sets whether to insert the overflow/underflow detection logic during operator build.

If abnormal computation precision occurs in the model and operator overflow/underflow is suspected as the root cause, configure this option at the build stage to add the overflow/underflow detection logic, and then rebuild the model for troubleshooting.

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 snippet with the overflow/underflow detection logic inserted:
      if (status_overflow[0]) {
        xxxxxx
    }

Arguments

  • 0 (default): Disables overflow/underflow detection. No overflow/underflow detection logic is inserted during operator build.
  • 1: Enables overflow/underflow detection. The overflow/underflow detection logic is inserted during operator build.

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.