Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NumPy] Fix uses of functions deprecated in NumPy 1.25.
NumPy 1.25 deprecates a number of function aliases (https://github.com/numpy/numpy/releases/tag/v1.25.0rc1) This change replaces uses of the deprecated names with their recommended replacements: * `np.round_` -> `np.round` * `np.product` -> `np.prod` * `np.cumproduct` -> `np.cumprod` * `np.sometrue` -> `np.any` * `np.alltrue` -> `np.all` The deprecated functions will issue a `DeprecationWarning` under NumPy 1.25, and will be removed in NumPy 2.0. PiperOrigin-RevId: 538846040
- Loading branch information