Skip to content
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

GEMM in Systolic Array #46

Closed
mateo-vm opened this issue Feb 14, 2022 · 2 comments
Closed

GEMM in Systolic Array #46

mateo-vm opened this issue Feb 14, 2022 · 2 comments

Comments

@mateo-vm
Copy link

Is there currently a way to compute matrix-matrix multiplications with the systolic array or is it limited to convolutional tensors?

@yaoyuannnn
Copy link
Member

You can run GEMMs on the systolic array as special convolutions. For example, an FC of (M, K) * (K, N) can be viewed as a 1x1 convolution of (1, M, 1, K) and (N, 1, 1, K), which produces a (1, M, 1, N) tensor.

@mateo-vm
Copy link
Author

Thank you for the reply. There were some errors (in line with #43), but in general it worked.

In case someone else want to test this too, just note that it is needed to set up the stride and the padding accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants