At the expense of memory, you can do
((v.unsqueeze (0)-v.unsqueeze (1))**2).sum (2)**0.5.
This works on master, on 0.1.12 you would need to throw in .expand (10,10,6) after the unsqueezes.
Best regards
Thomas