[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs backpropagation of .
  • Formula:output={gradOutput(i)if self(i)>threshold0otherwiseoutput = \begin{cases} gradOutput(i) & \text{if } self(i) > threshold \\ 0 & \text{otherwise} \end{cases}
[object Object]

Each operator has calls. First, aclnnThresholdBackwardGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnThresholdBackward is called to perform computation.

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

    [object Object]
    • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]: The INT64 data type is not supported.
    • [object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]: The BFLOAT16 and INT64 data types are not supported.
    • Ascend 950PR/Ascend 950DT: This product is supported only when the value is 0.0.
  • Returns:

    [object Object]: 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:

    [object Object]: status code. For details, see .

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

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

[object Object]