MatMul
Function
Perform multiplication operations on two matrices.
Prototype
1 | 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. Ensure the matrix contains no NaN or infinity values to avoid undefined calculation results. |
blockB |
Input |
Matrix used for multiplication operations. |
This pointer is not null and only 1D tensors are accepted. Ensure the matrix contains no NaN or infinity values to avoid 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:
|
|