KEMBAR78
Fix numpy deprecation warnings by lgeiger · Pull Request #3768 · tensorflow/tensorboard · GitHub
Skip to content

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