aclblasCreateHandleForHgemv

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Creates a handle to matrix-vector multiplication. Both the input and output are of data type aclFloat16. After the handle is created, call aclopExecWithHandle to execute the operator.

Prototype

1
2
3
4
5
aclError aclblasCreateHandleForHgemv(aclTransType transA,
int m,
int n,
aclComputeType type,
aclopHandle **handle)

Parameters

Parameter

Input/Output

Description

transA

Input

Transpose flag of matrix A. For details about the type definition, see aclTransType.

m

Input

Number of rows in matrix A (row-major first in data storing).

n

Input

Number of columns in matrix A.

type

Input

Computation precision type (high precision by default). For details about the type definition, see aclComputeType.

handle

Output

Pointer to the operator execution handle's pointer. For details about the type definition, see aclopHandle.

Returns

0 on success; else, failure. For details, see aclError.