I see. @albanD
if we operation on a tensor (without Variable), torch.dot returns a float.
if we operation on a Variable tensor, torch.dot returns a variable tensor which contains one elements.
Then I think the office specification should better make it more clear. I like pytorch a lot, but I think some part of the official specification is not quite clear.