Function: create_handle_for_gemv_ex

C Prototype

aclError aclblasCreateHandleForGemvEx(aclTransType transA,

int m,

int n,

aclDataType dataTypeA,

aclDataType dataTypeX,

aclDataType dataTypeY,

aclComputeType type,

aclopHandle **handle)

Python Function

handle, ret = acl.blas.create_handle_for_gemv_ex(trans_a, m, n, data_type_a, data_type_x, data_type_y, type)

Function Usage

Creates a handle for matrix-vector multiplication. The data types of the input and output data are set using arguments.

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

Input 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.

data_type_a: int, data type of matrix A.

data_type_x: int, data type of vector x.

data_type_y: int, data type of vector y.

type: int, calculation precision.

Return Value

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

ret: int, error code.

Restrictions

Only the following data types of A, x and y are supported.

Data Type of A Data Type of x Data Type of y

aclFloat16 aclFloat16 aclFloat16

aclFloat16 aclFloat16 float(float32)

int8_t int8_t float(float32)

int8_t int8_t int32_t