MatMul
Function
Perform multiplication operations on two matrices.
Prototype
int Matmul(T *blockA, T *blockB, T *output, MatMulParams<T> &M);
Parameters
Parameter |
Input/Output |
Description |
Constraint |
|---|---|---|---|
blockA |
Input |
Matrix used for multiplication operations. |
This pointer is not null and only 1D tensors are accepted. The matrix does not contain NaN or infinity, which must be checked by the user to prevent undefined calculation results. |
blockB |
Input |
Matrix used for multiplication operations. |
This pointer is not null and only 1D tensors are accepted. The matrix does not contain NaN or infinity, which must be checked by the user to prevent undefined calculation results. |
output |
Input |
Tensor used to store the calculation results as the output. |
This pointer is not null and only 1D tensors are accepted. |
M |
Input |
Parameter structure used for multiplication operations, including:
|
|