Skip to content

Instantly share code, notes, and snippets.

@pervognsen
Created January 17, 2019 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pervognsen/f656075edf028e75b6c1158564387612 to your computer and use it in GitHub Desktop.
Save pervognsen/f656075edf028e75b6c1158564387612 to your computer and use it in GitHub Desktop.
A = blocks(A, (w, h))
B = blocks(B, (h, w))
C = blocks(out, (w, w))
for j in range(B.shape[0]):
for k in range(B.shape[1]):
np.copyto(column_panel, B[j, k])
for i in range(A.shape[0]):
np.copyto(row_panel, A[i, j])
microkernel(C[i, k], row_panel, column_panel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment