Hello Simon,
Thanks a lot, this is way simpler than I thought, but I get the following error when I run the small example after changing the lines you indicated:
RuntimeError: size mismatch, m1: [5 x 12], m2: [6 x 3]

Any idea why?