pytorch
975d9f25 - Mypy fixes for pytorch master (#52090)

Commit
3 years ago
Mypy fixes for pytorch master (#52090) Summary: This PR adds fixes mypy issues on the current pytorch main branch. In special, it replaces occurrences of `np.bool/np.float` to `np.bool_/np.float64`, respectively: ``` test/test_numpy_interop.py:145: error: Module has no attribute "bool"; maybe "bool_" or "bool8"? [attr-defined] test/test_numpy_interop.py:159: error: Module has no attribute "float"; maybe "float_", "cfloat", or "float64"? [attr-defined] ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/52090 Reviewed By: walterddr Differential Revision: D26469596 Pulled By: malfet fbshipit-source-id: e55a5c6da7b252469e05942e0d2588e7f92b88bf
Parents
Loading