pytorch
d5d2096d - [testing] make @dtypes mandatory when using @dtypesIf (#68186)

Commit
3 years ago
[testing] make @dtypes mandatory when using @dtypesIf (#68186) Summary: Fixes https://github.com/pytorch/pytorch/issues/53647 With this if a test forgets to add `dtypes` while using `dtypesIf`, following error is raised ``` AssertionError: dtypes is mandatory when using dtypesIf however 'test_exponential_no_zero' didn't specify it ``` **Tested Locally** Pull Request resolved: https://github.com/pytorch/pytorch/pull/68186 Reviewed By: VitalyFedyunin Differential Revision: D32468581 Pulled By: mruberry fbshipit-source-id: 805e0855f988b77a5d8d4cd52b31426c04c2200b
Author
Parents
Loading