Each operator has calls. First, aclnnLogitGradGetWorkspaceSize is called to obtain the input parameters and compute the workspace size required by the process. Then, aclnnLogitGrad is called to perform computation.
[object Object]
[object Object]
Parameters:
[object Object]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:
- aclnnLogitGrad defaults to a deterministic implementation.
Impact of eps on x and output:
- If eps is less than 0, the value of x is not in [0, 1], and the output is NaN.
- If eps is greater than or equal to 0, the value of x is not in [eps, 1 - eps], and the output is 0.
- If eps is greater than 1, NaN is output. If eps is 1, Inf is output.
- If eps is Inf, 0 is output.
- If eps is NaN, NaN is output.
Impact of x on the output:
- If x is 0 or 1, Inf is output.
- If x is Inf or NaN, NaN is output.
If dy is Inf or NaN, Inf or NaN is output.
The following example is for reference only. For details, see .
[object Object]