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

Fix numpy deprecation warnings #3768

Merged
merged 1 commit into from
Jun 30, 2020
Merged

Conversation

lgeiger
Copy link
Contributor

@lgeiger lgeiger commented Jun 27, 2020

This change replaces the following deprecated numpy calls:

This change replaces the following deprecated numpy calls:
- [`numpy.asscalar`](https://numpy.org/doc/stable/reference/generated/numpy.asscalar.html) deprecated since 1.16 --> `numpy.ndarray.item()`
- [`numpy.ndarray.tostring()`](https://numpy.org/devdocs/reference/generated/numpy.ndarray.tostring.html) deprecated since 1.19 --> `numpy.ndarray.tobytes()`
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@nfelt nfelt merged commit bcec4c2 into tensorflow:master Jun 30, 2020
@lgeiger lgeiger deleted the np-deprecation branch June 30, 2020 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants