How to do elementwise multiplication of two vectors? 
  
  
    I have two vectors each of length n, I want element wise multiplication of two vectors. result will be a vector of length n.
  


Just use

a * b  or  torch.mul(a, b)