Force numpy prod to use 64 bit integers on Windows in some tests (#88089)
This fixes some prod and masked.prod tests on Windows.
np.prod uses int32 on Windows so it overflows.
On Linux it uses by default int64.
Fixes #77305
Fixes #77320
Fixes #77334
Fixes #77335
Fixes #77336
Fixes #77337
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88089
Approved by: https://github.com/mruberry