Function: create_handle_for_hgemm
C Prototype |
aclError aclblasCreateHandleForHgemm(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_hgemm(trans_a, trans_b, trans_c, m, n, k, type) |
Function Usage |
Creates a handle to matrix-matrix multiplication. The data type of the input and output data is aclFloat16. It is a synchronous interface. |
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 to the pointer to the handle data of the operator executed. ret: int, error code.
|
Restrictions |
None |
Precautions |
None |