Commit 73002e4
[NumPy] Fix uses of the np.stack() family of functions under NumPy 1.25.
NumPy 1.25 release notes: https://github.com/numpy/numpy/releases/tag/v1.25.0
Per the release notes, in NumPy 1.25:
A sequence must now be passed into the stacking family of functions (stack, vstack, hstack, dstack and column_stack). (gh-23019)
This change fixes test failures where a non-sequence was passed to a stack function. The most common fix is to convert the input to a list explicitly before passing it to any stacking functions.
PiperOrigin-RevId: 542831919
Change-Id: I69cc25da897098fa11b6299145ab06c0eb37ad961 parent ccbaf91 commit 73002e4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
0 commit comments