Enable product for bool tensor (#48637)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/48351
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48637
Reviewed By: mrshenli
Differential Revision: D25658596
Pulled By: mruberry
fbshipit-source-id: ff3ada74b6d281c8e4753ed38339a1c036f722ee