[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs backpropagation of , and computes the silu gradient input based on the silu backpropagation gradient and forward output.
  • Formula:σ(x)=11+ex\sigma(x) = {\frac{1} {1+{e}^{-x}}} s(x)=xσ(x)s(x) = x\sigma(x) s(x)=σ(x)(1+xxσ(x))s^\prime(x) = \sigma(x)(1+x-x\sigma(x)) gradInput=gradOutputs(x)gradInput = gradOutput * s^\prime(x)

σ(x)\sigma(x) is the sigmoid function, s(x)s(x) is the SiLU function, and s(x)s^\prime(x) is the derivative of the SiLU function.

[object Object]

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

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

    [object Object]
    • [object Object]Atlas training products[object Object]: The data type can be FLOAT16 or FLOAT.
  • 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:
    • aclnnSiluBackward defaults to a deterministic implementation.
[object Object]

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

[object Object]