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 warning with numpy 1.17.0+ #30559
Conversation
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 <yong.tang.github@outlook.com>
PiperOrigin-RevId: 257483885
what is the solution. Can u explain pls |
what is the solution then? I couldn't understand the procedure. What I understood is that to change the tensorflow version instead of numpy ? But how? |
Actually I downloaded numpy then It worked probably |
This commit integrates upstream changes into TensorBoard’s `tensorflow_stub` to resolve a deprecation warning in recent release candidates for NumPy. Upstream bug: <tensorflow/tensorflow#30427> Upstream fix: <tensorflow/tensorflow#30559>
when does this land in a release? the warnings are a bit distracting atm. |
Cherry-picking this in #31333 for 1.14.1 patch release. It will also be included in a future main release shortly. |
@mihaimaruseac Thanks! 👍 |
This fix tries to address the issue raised in #30427 where
import tensorflow
caused the following warning with numpy 1.17.0+: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 yong.tang.github@outlook.com