[Cherry-pick] Fix numpy 1.20+ deprecation warnings (#43513)
* Fix numpy 1.20+ deprecation warnings (#42929)
* Replace np.bool/np.bool8 with np.bool_
* Replace np.object with np.object_
* Replace np.complex with np.complex128
* Replace np.float with np.float64
* Replace np.int with np.int_
* Rerun pre-commit for newer pre-commit configuration
* Use builtin bool instead of np.bool_ based on the context
* fix mode dtype
Co-authored-by: Nzlsh80826 <rewang@nvidia.com>
Showing
想要评论请 注册 或 登录