You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace deprecated np.bool with equivalent bool (#1524)
Summary:
## Motivation
`np.bool` has been removed in numpy 1.24.0, currently only available as a pre-release. This caused failures like [this one](https://github.com/pytorch/botorch/actions/runs/3542694073)
`np.bool` has always been equivalent to `bool`, so I replaced it with `bool`.
Surprisingly (to me), we are only running that version of numpy in the tutorials and are using an older version of unit tests, so tests all passed.
Pull Request resolved: #1524
Test Plan: Added a test that the dtype mapping in `torch_to_numpy_dtype_dict` matches the behavior of torch `.numpy()`
Reviewed By: Balandat
Differential Revision: D41527521
Pulled By: esantorella
fbshipit-source-id: 0718aa3af5eb5a2423c152cb911babf7754e6b89
0 commit comments