Function: create_handle_for_s8gemv

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Function Usage

Creates a handle to matrix-vector multiplication. The input data type is int8_t, and the output data type is int32_t.

After the handle is created, call acl.op.execute_with_handle to execute the operator.

Prototype

  • C Prototype
    1
    2
    3
    4
    5
    aclError aclblasCreateHandleForS8gemv(aclTransType transA,
    int m,
    int n,
    aclComputeType type,
    aclopHandle **handle)
    
  • Python Function
    1
    handle, ret = acl.blas.create_handle_for_s8gemv(trans_a, m, n, type)
    

Parameter Description

Parameter

Description

trans_a

Int, whether matrix A is transposed.

m

Int, number of rows in matrix A (row-major first in data storing).

n

Int, number of columns in matrix A.

type

Int, computation precision.

Return Value Description

Return Value

Description

handle

Int, pointer address of the handle data of the operator to be executed.

ret

Int, error code: 0 on success; else, failure.