Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NumPy] Fix uses of the np.stack() family of functions under NumPy 1.25. #2064

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

[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.

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: 542645116
@copybara-service copybara-service bot force-pushed the test_542645116 branch 2 times, most recently from 5eec54f to 548dc4e Compare July 11, 2023 13:03
@copybara-service copybara-service bot closed this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant