报错:
…\Anaconda\envs\tf1.12gpu\lib\sitepackages\tensorflow\python\framework\dtypes.py:523: 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’.
numpy版本过高
解决办法:pip install numpy==1.16.0 -U
不用安装cuda cudnn在环境里直接配置tensorflow的代码:
例:配置tensorflow1.12
conda install cudatooklkit=9.0 cudnn=7.2
conda create -n tf1.12gpu tensorflow-gpu==1.12 -y