Commit 2af59a1
[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: 538825144
Change-Id: I484747bcf8d0a64b78e7163df940fd5a734b3e5c1 parent 6fce666 commit 2af59a1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
0 commit comments