Add 0-dim support for binary mkldnn ops (#51921)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51921
Test Plan: Imported from OSS
Reviewed By: navahgar
Differential Revision: D26696696
Pulled By: eellison
fbshipit-source-id: 96ca79c0d6b5ed7c32c14dc4e7c383f2522a85cb