Add USE_NUMPY define only if PyTorch is compiled with Numpy (#56102)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/55849
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56102
Reviewed By: driazati, mruberry
Differential Revision: D27784057
Pulled By: malfet
fbshipit-source-id: 636a005e7f74a58d47188f18b74f7deb4afe5fcb