For logical tests, use the dtypes decorator (#42483)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/42483
Test Plan: Imported from OSS
Reviewed By: ngimel
Differential Revision: D23684424
Pulled By: mruberry
fbshipit-source-id: ba7ab5c3a6eaa0c16975728200f27d164ed4f852