Solved by eqy in post #2 
              
              
                I think it’s impossible to fully distill the intent of a given numerical libraries interface, since it’s debatable whether NumPy or PyTorch established these conventions or if they were borrowed from predecessors like MATLAB, BLAS, etc… 
However, in this case, what is being done is elementwise multi…