aclblasCreateHandleForHgemm
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Creates a handle to matrix-matrix multiplication. Both the input and output are of data type aclFloat16. After the handle is created, call aclopExecWithHandle to execute the operator.
Prototype
aclError aclblasCreateHandleForHgemm(aclTransType transA, aclTransType transB, aclTransType transC, int m, int n, int k, aclComputeType type, aclopHandle **handle)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
transA |
Input |
Transpose flag of matrix A. |
transB |
Input |
Transpose flag of matrix B. |
transC |
Input |
Transpose flag of matrix C. Currently, only ACL_TRANS_N is supported. |
m |
Input |
Number of rows in matrix A and matrix C. |
n |
Input |
Number of columns in matrix B and matrix C. |
k |
Input |
Number of columns in matrix A and number of rows in matrix B. |
type |
Input |
Computation precision type (high precision by default). |
handle |
Output |
Pointer to the pointer to the operator handle. |
Returns
0 on success; else, failure. For details, see aclError.