【安装教程】安装cudnn 首先我是已经安装了cuda,但是因为没有安装cudnn在跑程序的时候出现了一些问题,因此安装了cudnn。CUDA可以看作是一个工作台,上面配有很多工具,如锤子、螺丝刀等。cuDNN是基于CUDA的深度学习GPU加速库,它就相当于工作的工具,比如它就是个扳手。但是CUDA这个工作台买来的时候,并没有送扳手。想要在CUDA上运行深度神经网络,就要安装cuDNN,就像想要拧个螺帽就要把扳手买回来。这样才能使GPU进行深度神经网络的工作,工作速度相较CPU快很多。
【安装教程】安装tensorflow-gpu版本 如果不是首次安装tensorflow,卸载TensorFlow相关的内容,包括依赖的包(tensorflow-estimator、tensorboard、tensorflow、keras-applications、keras-preprocessing),不然后续安装了tensorflow-gpu可能会出现找不到cuda的问题。根据安装的CUDA版本、python版本确定对应的tensoflow-gpu版本、详细信息查看该网址。到此,TensorFlow—gpu版本安装成功!== 查看和卸载指令 ==
【问题解决】AttributeError: ‘_SingleProcessDataLoaderIter‘ object has no attribute ‘next‘ 【问题解决】AttributeError: ‘_SingleProcessDataLoaderIter‘ object has no attribute ‘next‘
问题解决:【RuntimeError:PytorchStreamReader failed reading zip archive: failed finding central directory】 问题解决:【RuntimeError:PytorchStreamReader failed reading zip archive: failed finding central directory】
【问题解决!】OSError: [WinError 1455] 页面文件太小,无法完成操作。Error loading “c:\Anaconda3\lib 解决错误OSError: [WinError 1455] 页面文件太小,无法完成操作。
【解决问题】Navicat Premium 15 注册时出现 No All Pattern Found! File Already Patched Navicat Premium 15 注册时出现 No All Pattern Found! File Already Patched
问题解决:NLTK报错:Resource punkt not found. Please use the NLTK Downloader to obtain the resource: 问题解决:NLTK报错:Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
解决警告!!UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead. warnings.warn 解决警告UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead. warnings.warn
解决pytorch softmax警告UserWarning: Implicit ....Change the call to include dim=X as an argument. softmax()出现在早期的pytorch中,当时不提示警告,现在softmax()函数已经被弃用,虽然程序还是可以运行成功,但是会给出警告。一般会设置成dim=0,1,2,-1的情况(可理解为维度索引)。其中2与-1等价,相同效果。当dim=0时, 是对每一维度相同位置的数值进行softmax运算,和为1。当dim=1时, 是对某一维度的列进行softmax运算,和为1。当dim=2时, 是对某一维度的行进行softmax运算,和为1。当dim=-1时, 是对某一维度的行进行softmax运算。