Formula:
Mathematical expression:
Assume that the output GLUGrad consists of two parts: out = [a_grad, b_grad]. sig_b = sigmoid(b) a_grad = y_grad sig_b b_grad = a_grad (a - a * sig_b) y_grad indicates gradOut, a indicates the first tensor after the input tensor is evenly divided based on the specified dim, and b indicates the second tensor.
Each operator has calls. First, aclnnGluBackwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnGluBackward is called to perform computation.
Parameters:
[object Object]- [object Object]Atlas inference series products[object Object] and [object Object]Atlas training series products[object Object]: The data type can be DOUBLE, FLOAT, or FLOAT16.
Returns:
aclnnStatus: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic computation:
- aclnnGluBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .