Skip to content

Fix np.float -> np.floating change#22175

Merged
tensorflow-copybara merged 1 commit intotensorflow:masterfrom
yongtang:09102018-np.floating
Sep 11, 2018
Merged

Fix np.float -> np.floating change#22175
tensorflow-copybara merged 1 commit intotensorflow:masterfrom
yongtang:09102018-np.floating

Conversation

@yongtang
Copy link
Copy Markdown
Member

@yongtang yongtang commented Sep 9, 2018

While running core_rnn_cell_test:

bazel test -s --verbose_failures --config=opt //tensorflow/contrib/rnn:core_rnn_cell_test

Noticed the following warning:

FutureWarning: Conversion of the second argument of issubdtype from
`float` to `np.floating` is deprecated. In future, it will be treated
as `np.float64 == np.dtype(float).type`.

This fix fixes the above warning.

Signed-off-by: Yong Tang yong.tang.github@outlook.com

While running core_rnn_cell_test:
```
bazel test -s --verbose_failures --config=opt //tensorflow/contrib/rnn:core_rnn_cell_test
```
Noticed the following warning:
```
FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
```

This fix fixes the above warning.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@yifeif yifeif added the ready to pull PR ready for merge process label Sep 10, 2018
@yifeif yifeif self-assigned this Sep 10, 2018
@tensorflow-copybara tensorflow-copybara merged commit 542fb58 into tensorflow:master Sep 11, 2018
tensorflow-copybara pushed a commit that referenced this pull request Sep 11, 2018
@yongtang yongtang deleted the 09102018-np.floating branch September 11, 2018 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull PR ready for merge process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants