[object Object][object Object][object Object]undefined
[object Object]
  • Description: The SilentCheck operator compares the input feature value (val) with the absolute threshold and relative threshold to determine whether to trigger a silence check fault. In addition, the environment variable (npuAsdDetect) passed by the framework can be used to control whether to trigger a warning or resumable training when a fault occurs. By default (when npuAsdDetect=1), only logs are printed.

  • Formula:

    • If the current input [object Object] is inf/nan, or [object Object] exceeds the absolute threshold [object Object], or the jump exceeds the relative threshold [object Object], the L1 fault is identified. If the environment variable [object Object] is set to 2, a log is printed and resumable training is triggered. If the environment variable [object Object] is set to 1, [object Object] and [object Object] are updated, and then the function returns.
    • If the current input [object Object] exceeds the absolute threshold [object Object], or the jump exceeds the relative threshold [object Object], the L2 fault is identified. A warning is printed, [object Object] and [object Object] are updated, and then the function returns.
    • If neither the L1 fault nor the L2 fault is triggered, the situation is normal. If [object Object] is set to 3, the feature value is printed. Otherwise, [object Object] and [object Object] are updated, and then the function returns.
    • [object Object] is [pre_val, min_val, max_val], indicating [last detected val, historical minimum val, historical maximum val]. [object Object] indicates the number of detection times. The number is incremented by 1 each time.
[object Object]

Each operator has calls. First, aclnnSilentCheckGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnSilentCheck is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    aclnnStatus: status code. For details, see .

    The first-phase API implements input parameter verification. The following errors may be thrown:

    [object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    aclnnStatus: status code. For details, see .

[object Object]
  • Deterministic compute:
    • aclnnSilentCheck defaults to a deterministic implementation.
[object Object]

The following example is for reference only. For details, see .

[object Object]