[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs matrix multiplication on the tensors self and mat2.
  • Formula:result=self@mat2result=self @ mat2
[object Object]

Each operator has calls. First, aclnnMmGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnMm is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters:

    [object Object]
    • [object Object]Atlas training series products[object Object] and [object Object]Atlas inference series products[object Object]:
      • The data type BFLOAT16 is not supported.
      • cubeMathType=0 is not supported when the input data type is FLOAT32.
      • cubeMathType=1: If the input data type is FLOAT32, it is converted to FLOAT16 for computation. If the input data type is not FLOAT32, no processing is performed.
      • cubeMathType=3 is not supported.
      • cubeMathType=4: No processing is performed.
    • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training series products/Atlas A3 inference series products[object Object]:
      • cubeMathType=1: If the input data type is FLOAT32, it is converted to HFLOAT32 for computation. If the input data type is not FLOAT32, no processing is performed.
      • cubeMathType=2: If the input data type is BFLOAT16, this option is not supported.
      • cubeMathType=3: If the input data type is FLOAT32, it is converted to HFLOAT32 for computation. If the input data type is not FLOAT32, this option is not supported.
      • cubeMathType=4: If the input data type is FLOAT32 and the k-axis is greater than 2048, grouped accumulation is used for computation. If the input data type is not FLOAT32 or the k-axis is less than 2048, no processing is performed.
  • Returns:

    aclnnStatus: status code. For details, see .

    The first-phase API implements input parameter verification. The following errors may be thrown:

    [object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    aclnnStatus: status code. For details, see .

[object Object]
  • Deterministic description:
    • [object Object]Atlas training series products[object Object] and [object Object]Atlas inference series products[object Object]: aclnnMm defaults to a deterministic implementation.
  • Compute consistency:
    • [object Object]Atlas training series products[object Object] and [object Object]Atlas inference series products[object Object]:
      • If strong consistency compute is enabled, the compute result is deterministic, meaning that multiple executions will generate the same result. In addition, the compute result is irrelevant to the data location.
      • aclnnMm defaults to a non-consistent implementation. You can call aclrtCtxSetSysParamOpt to enable consistency compute.
      • For example, when performing matrix multiplication, the order of accumulation across different basic blocks may vary, which may lead to slight differences in results for the same data in different rows. However, when strong consistency compute is enabled, the results will remain consistent across rows as long as the inputs are the same. - [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training series products/Atlas A3 inference series products[object Object]: If one input is BFLOAT16 and the other is FLOAT16, the data type cannot be deduced. If one input is BFLOAT16 and the other is FLOAT32, the data type cannot be deduced.
[object Object]

The following example is for reference only. For details, see .

[object Object]