Parametrize block size according to input shape in Pallas #20464
Unanswered
gautierronan
asked this question in
Q&A
Replies: 1 comment 4 replies
-
For an I then usually sweep over combinations of |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Pallas, what is the proper way to parametrize the size of blocks depending on the input matrix dimensions?
For instance, say I have a
_matmul
function which callspl.pallas_call(matmul_kernel, ...)(x, y)
with inputsx
andy
of shape (N, N). I want to change my BlockSpec depending on the size N, to get optimal performance. What is the proper way to achieve this?Sorry if this is a newbie question!
Beta Was this translation helpful? Give feedback.
All reactions