[object Object][object Object][object Object]undefined
[object Object]
  • Description: Computes the product of matrix input and vector vec.

  • Formula:

    out=inputvecout = input * vec

    inputinput is a two-dimensional tensor of n x m, vecvec is a one-dimensional tensor of length m, and outout is a one-dimensional tensor of length n.

  • Example:

    [object Object]
[object Object]

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

[object Object]
[object Object]
[object Object]
  • Input parameters:

    [object Object]
    • [object Object]Atlas training products[object Object] and [object Object]Atlas inference 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.
    • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object], [object Object]Atlas A3 training products/Atlas A3 inference products[object Object], and Ascend 950PR/Ascend 950DT:
      • 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.
  • Returns:

    [object Object]: 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:

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic description:
    • [object Object]Atlas training products[object Object] and [object Object]Atlas inference products[object Object]: aclnnMv defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic compute.
    • For Ascend 950PR/Ascend 950DT, aclnnMv is implemented in deterministic mode by default.
[object Object]

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

[object Object]