Don’t pass the same dim multiple times, that is an error. If you upgrade PyTorch you get an error
RuntimeError: dim 1 appears multiple times in the list of dims

So it wasn’t properly defined before, and now we explicitly check.
Best regards
Thomas