feiyuhuahuo:

Is the former one used for tensor + tensor and the latter one used for tensor + scalar ? Or anything other?


Yes, this is correct.  You can check this out in the source code, here: pytorch/functional_modules.py at b89827b73f7881a8108518452768654894862e5d · pytorch/pytorch · GitHub 24