- Description: Performs backpropagation of aclnnMoeFinalizeRoutingV2.
- Formulas:
(1)
[object Object]is a null pointer: (2)[object Object]is not a null pointer, and[object Object]is a null pointer: (3)[object Object]and[object Object]are not null pointers: R indicates batch x sequence, H indicates hidden, and K indicates topK.
Each operator consists of . You must first call the [object Object] API to obtain the required workspace size and the executor that contains the operator computation flow, and then call the [object Object] API to execute the computation.
[object Object]
[object Object]
Parameters
[object Object]- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]:
- The data type of scalesOptional must be the same as that of gradY.
- Ascend 950PR/Ascend 950DT:
- The data type of scalesOptional can be different from that of gradY.
- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]:
Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter validation. The following error codes may be returned.
[object Object]
- Deterministic computing:
[object Object]defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]