gpt4 book ai didi

python - future 警告 : Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated

转载 作者:IT老高 更新时间:2023-10-28 20:34:48 28 4
gpt4 key购买 nike

更新我的 NumpyTensorflow 后,我收到了这些警告。我已经尝试过these ,但没有任何效果,每一个建议都将不胜感激。

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`.
from ._conv import register_converters as _register_converters
2018-01-19 17:11:38.695932: I C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

最佳答案

这可能是也可能不是你的情况,但同样的警告也会从 h5py 包中吐出:

/home/user/bin/conda3/lib/python3.6/site-packages/h5py/__init__.py:34: 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. from ._conv import register_converters as _register_converters

对于遇到这个问题的人来说,这是一个known h5py issue , 与 numpy 1.14 一起介绍.正如开发人员所说:

You can ignore the warning, it's not going to cause any issues at the moment, but you should upgrade to the next release of h5py when it becomes available.

...所以它是无害的。修复刚刚 merged掌握。但在更新发布之前,解决方法是将 numpy 降级到以前的版本:

pip install numpy==1.13.0

更新:h5py has released带有修复程序的 RC 构建。以下命令应该这样做:

pip install h5py==2.8.0rc1

更新(最终版):现在有一个完整的版本。所以你可以简单地运行:

pip install --upgrade h5py

关于python - future 警告 : Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48340392/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com