Function: create_handle_for_s8gemm

C Prototype

aclError aclblasCreateHandleForS8gemm(aclTransType transA,

aclTransType transB,

aclTransType transC,

int m,

int n,

int k,

aclComputeType type,

aclopHandle **handle)

Python Function

handle, ret = acl.blas.create_handle_for_s8gemm(trans_a, trans_b, trans_c, m, n, k, type)

Function Usage

Creates a handle for matrix-matrix 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.

Input Description

trans_a: int, whether matrix A is transposed.

trans_b: int, whether matrix B is transposed.

trans_c: int, transpose flag of matrix C. Currently, only aclTrans_N is supported.

m: int, number of rows in matrix A and C.

n: int, number of columns in matrix B and C.

k: int, number of columns in matrix A and number of rows in matrix B.

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