pytorch
e81f2968 - Fixed Bool in IsIntegralType bug (plus review comments) (#23942)

Commit
6 years ago
Fixed Bool in IsIntegralType bug (plus review comments) (#23942) Summary: Same as https://github.com/pytorch/pytorch/pull/23887, but also includes review comments, so we can kick off a build. Original PR: This [PR](https://github.com/pytorch/pytorch/pull/23346) caused [this](https://github.com/pytorch/pytorch/issues/23882) bug. Fix: - Deprecate old isIntegralType and add overload which takes a boolean flag which tells if torch.bool should be included in integral types or not. Testing: - Added extra test cases - Tested via running unit tests locally. Pull Request resolved: https://github.com/pytorch/pytorch/pull/23942 Differential Revision: D16688056 Pulled By: gchanan fbshipit-source-id: eff457e27b13e116c05ffd022b2fb0495abe0e97
Author
Parents
Loading