Description: Implements grouped matrix multiplication, supporting non-uniform matrix dimension sizes across multiple groups. The basic function is matrix multiplication, for example, , where indicates the number of groups and , , and define the shapes for each group. The input and output data types are both aclTensor, with K-axis grouping.
Formulas:
Each operator has calls. First, [object Object] is called to obtain the input parameters and compute the required workspace size based on the process. Then, [object Object] is called to perform computation.
Parameters:
[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 description: The default deterministic implementation of aclnnGroupedMatmulAddV2 is used.
- The size of each dimension for every tensor in
[object Object]and[object Object], after 32-byte alignment, should be less than the maximum value of INT32 (2147483647). - The supported input type combinations are as follows:
[object Object]: FLOAT16;[object Object]: FLOAT16;[object Object]: FLOAT32[object Object]: BFLOAT16;[object Object]: BFLOAT16;[object Object]: FLOAT32
The following example is for reference only. For details, see .