报错:
…\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
文章介绍了如何在Anaconda环境中,不安装CUDA和cuDNN的情况下,通过指定版本的cudatoolkit和cudnn,直接创建并配置支持GPU的Tensorflow1.12环境。过程中提到了numpy高版本导致的警告问题,并给出了降级numpy版本的解决方法。
691

被折叠的 条评论
为什么被折叠?



