TensorFlow 提示 “FutureWarning: Conversion of the second argument of issubdtype from `float` ......”警告

一、环境

TensorFlow API r1.12

CUDA 9.2 V9.2.148

cudnn64_7.dll

Python 3.6.3

Mac、Windows 10、Ubuntu 16.04

 

二、警告信息

/Users/jiweiwang/Anaconda3/anaconda3/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

 

三、解决方法

更新 h5py 

pip install h5py --upgrade

WJW-MacBook-Pro:~ jiweiwang$ pip install h5py --upgrade
Collecting h5py
  Downloading https://files.pythonhosted.org/packages/03/21/1cdf7fa7868528b35c1a08a770eb9334279574a8b5f1d7a2966dcec14e42/h5py-2.9.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (6.3MB)
    100% |████████████████████████████████| 6.3MB 55kB/s 
Requirement already satisfied, skipping upgrade: numpy>=1.7 in ./Anaconda3/anaconda3/lib/python3.6/site-packages (from h5py) (1.14.2)
Requirement already satisfied, skipping upgrade: six in ./Anaconda3/anaconda3/lib/python3.6/site-packages (from h5py) (1.11.0)
Installing collected packages: h5py
  Found existing installation: h5py 2.7.0
    Uninstalling h5py-2.7.0:
      Successfully uninstalled h5py-2.7.0
Successfully installed h5py-2.9.0

 

你可能感兴趣的:(TensorFlow基础)