Skip to content

Conversation

@mihaimaruseac
Copy link
Collaborator

This fix tries to address the issue raised in 30427 where
import tensorflow caused the following warning with numpy 1.17.0+:

/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])

The issue was cause by changes in numpy: numpy/numpy@ad1e060

This fix fixes the warning.

This fix fixes 30427.

Signed-off-by: Yong Tang [email protected]

This fix tries to address the issue raised in 30427 where
`import tensorflow` caused the following warning with numpy 1.17.0+:
```
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
```

The issue was cause by changes in numpy: numpy/numpy@ad1e060

This fix fixes the warning.

This fix fixes 30427.

Signed-off-by: Yong Tang <[email protected]>
@tensorflow-bot tensorflow-bot bot added the size:S CL Change Size: Small label Aug 5, 2019
@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@gunan gunan merged commit 41a52c3 into r1.14 Aug 5, 2019
@mihaimaruseac mihaimaruseac deleted the mm-cherry-pick-numpy-warning-fix branch August 5, 2019 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: no size:S CL Change Size: Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants