Description: Performs backpropagation of . It is used to compute the gradient input based on the gradient generated during upper-layer propagation and the forward input of LogSigmoid.
Formula:
is the forward input of the LogSigmoid function, is the LogSigmoid function, and is the derivative of the LogSigmoid function.
Each operator has calls. First, aclnnLogSigmoidBackwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnLogSigmoidBackward is called to perform computation.
Parameters:
[object Object]- [object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]: The data type can be FLOAT or FLOAT16.
Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown:
[object Object]
- Deterministic compute:
- aclnnLogSigmoidBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .