Function: create_handle_for_hgemv

C Prototype

aclError aclblasCreateHandleForHgemv(aclTransType transA,

int m,

int n,

aclComputeType type,

aclopHandle **handle)

Python Function

handle, ret = acl.blas.create_handle_for_hgemv(trans_a, m, n, type)

Function Usage

Creates a handle to matrix-vector multiplication. The data type of the input and output data is aclFloat16.

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.

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

None