[opinfo] use dtypes instead of dtypesIfCPU (#68732)
Summary:
Reland https://github.com/pytorch/pytorch/issues/67619
Replace usage of dtypesIfCPU with dtypes in OpInfo class and also make it a mandatory argument.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68732
Reviewed By: jbschlosser
Differential Revision: D32594344
Pulled By: mruberry
fbshipit-source-id: 660b38aef97752ba064228e8989041ed1d5777fe