Skip to content

Replaces deprecated use of numpy#fromstring method with #frombuffer #7004

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

arcra
Copy link
Member

@arcra arcra commented Jun 24, 2025

This method has been deprecated since version 1.14, and it started raising an error in 2.3, according to the release notes

A replacement with more appropriate semantics exists, so this change updates that use case to use the appropriate, non-deprecated method frombuffer.

Googlers, see b/422161123.

@arcra arcra marked this pull request as ready for review June 24, 2025 18:50
@arcra arcra requested a review from shijunliu-google June 24, 2025 18:50
@arcra arcra merged commit d1c5820 into tensorflow:master Jun 24, 2025
13 checks passed
@arcra arcra deleted the np_update branch June 24, 2025 18:55
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.

2 participants