Skip to content

Fix more code broken by Numpy 2.4.#1300

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_869158451
Open

Fix more code broken by Numpy 2.4.#1300
copybara-service[bot] wants to merge 1 commit intomainfrom
test_869158451

Conversation

@copybara-service
Copy link

Fix more code broken by Numpy 2.4.

Add np.squeeze to BBOB functions to handle array shapes.
Some matrix operations in BBOB functions can result in arrays with singleton dimensions. Adding np.squeeze ensures that these results are properly shaped, typically as scalars or 1D arrays, for subsequent calculations.

Add np.squeeze to BBOB functions to handle array shapes.
Some matrix operations in BBOB functions can result in arrays with singleton dimensions. Adding np.squeeze ensures that these results are properly shaped, typically as scalars or 1D arrays, for subsequent calculations.

PiperOrigin-RevId: 869158451
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.

1 participant