import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]="3"
运行tensorflow测试程序时,出现: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
环境:
国内网上试过许多方法都不行,直到跳墙google里看到
pip install h5py==2.8.0rc1
完美解决
试过的其他方法:
import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]="3"
pip install numpy==1.13.0
import warnings
warnings.filterwarnings('ignore', '.*do not.*',)
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=FutureWarning)
import numpy as np
import tensorflow as tf
import h5py as h5py