Element wise multiplication of the last dimension

You don’t need expand() there, tensor broadcasting takes care of it.