-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile matrix multiplication #7
Comments
A matrix multiplication is equivalent to a fully-connected layer. Try checking the code for that file to see how to do a matrix multiplication: https://github.com/illinois-impact/puma-compiler/blob/master/test/fully-connected-layer.cpp. You can also check the MLP code which cascades multiple matrix multiplications. |
Thanks to @ielhajj , but I noticed that they are all matrix multiplication vectors, and there are no matrix multiplication. Do you know how to do that? |
Ah, yes. the hardware only supports matrix-vector multiplication. If you want to do matrix-matrix multiplication, you need to break it down into multiple matrix-vector multiplications (i.e., declare an array of input vectors, one per column, and multiply by each of the vectors). |
Thanks, I will try it. |
I want to try to compile the simplest matrix multiplication, but it seems that the compiler does not support matrix multiplication, does anyone know how to write a test file, thank you very much!
The text was updated successfully, but these errors were encountered: