Can you open an issue at https://github.com/pytorch/pytorch/issues/ 60
Looks like we removed implicit flattening, and Gregory Chanan will reply with either the reason, or issue a fix.
For now you can do:
torch.dot(tensor_1.view(-1), tensor_2.view(-1))