Hacker News new | ask | show | jobs
by kanaffa12345 1606 days ago
you don't transpose it before the matmul, you always have it transposed (i.e., when you print the weights of a linear layer in pytorch, you're actually seeing (A^t)^t and what's stored is A^t.