- Description: This operator is a part of the cross entropy computation module in the vocabulary parallelism scenario. It solves the video memory and computing efficiency problems in the case of ultra-large vocabulary. This part involves the gradient computation implementation, which is used to compute the gradients of leaf nodes
[object Object]and[object Object]. The outputs of[object Object]and[object Object], along with the global communication result related to[object Object], need to be obtained as the input of this API. - Formula:
High-performance mode, where the value of softmaxOptional is not nullptr:
[object Object]Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] 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 description:
- The aclnnFusedLinearCrossEntropyLossGrad is implemented in a deterministic manner by default.
The following example is for reference only. For details, see .
[object Object]