首页 > 其他分享 >Install tensorflow-gpu==2.6.0

Install tensorflow-gpu==2.6.0

时间:2023-06-25 22:32:35浏览次数:37  
标签:Install python how conda install download tensorflow 2.6

Some of the previous preparations will not be detailed here.

CUDA and cuDNN: how to install and configure. You can see a blog that  tell you how to configure pytorch.

https://blog.csdn.net/m0_72572822/article/details/129938788?spm=1001.2014.3001.5501

And then I'll talk about how to install tensorflow-gpu. Okay.

Having installed CUDA and cuDNN,use conda to create a new enviroment of python.

conda create -n tensorflow2 python=3.8
conda activate tensorflow2

Then we can use this command to speed up the download.

pip config set global.index-url https://opentuna.cn/pypi/web/simple

Here I download the method is as follows.

pip install tensorflow-gpu==2.6.0

Install tensorflow-gpu==2.6.0_tensorflow

You can see the download speed is very fast.

At the end you will find the following prompt for a successful installation.

Install tensorflow-gpu==2.6.0_CUDA_02

Input python to test.

Install tensorflow-gpu==2.6.0_CUDA_03

import tensorflow as tf

If it shows the following error message:

Install tensorflow-gpu==2.6.0_tensorflow_04

Here's my solution.

pip install protobuf==3.20.0

Install tensorflow-gpu==2.6.0_tensorflow_05

Try again to test it.

Install tensorflow-gpu==2.6.0_tensorflow_06

This is already done.


标签:Install,python,how,conda,install,download,tensorflow,2.6
From: https://blog.51cto.com/u_16069833/6549351

相关文章

  • TensorFlow11.3 循环神经网络RNN-情感分类实战
    这个就是好评和差评的一个分类。这个输入一般\(h_0\)全为0.要想实现这个结构有两种方案:SimpleRNNCell(这个更接近原理)singlelayermulti-layersRNNCell(这个方便使用)1.加载数据(x_train,y_train),(x_test,y_test)=keras.datasets.imdb.load_data(num_words=1000)#......
  • 11.2.0.1 Grid Infrastructure Installation Failed at Second Nodes While Running r
     11.2.0.1GridInfrastructureInstallationFailedatSecondNodesWhileRunningroot.shDueToASMCrashCausedbylmonTimeout[ID1239123.1]--------------------------------------------------------------------------------  修改时间06-JAN-2011    ......
  • 热度直逼TensorFlow的深度学习框架,我用它画下女朋友最美的脸
    这不,又一个程序员为爱变身灵魂画手,看得我都想学画画了。阿华是幸运的,因为他找到了对的方法,事半功倍,最终有情人终成眷属。这也得益于PyTorch的易学易用,大多数人第一次使用PyTorch几乎可以做到无痛上手。就连深度学习三巨头之一,图灵奖得主YannLeCun都在Twit......
  • 【已解决】【Tensorflow2.12.0版本以后合并CPU和GPU版】Tensorflow-gpu==2.12.0 安装
    !https://zhuanlan.zhihu.com/p/639416152解决方式:直接上解决方式,需要知道原因的看后文。直接安装tensroflow,从2022年12月起tensorflow-gpu已经合并到tensorflow包中了pipinstalltensorflow==2.12.0-ihttps://pypi.tuna.tsinghua.edu.cn/simple这里使用清华源......
  • TensorFlow11.2 循环神经网络RNN-循环神经网络、RNN-layer实现
    循环神经网络SentimentAnalysis(情感分析)类似于淘宝的好评还是差评,我们比较直观的一个方法就是:这里不好的是:Downsides:1.Longsentence100+wordstoomuchparameters[w,b]。就是比如说我们有100个单词,会产生很多个w,b,参数太多了。2.Nocontextinformation(没有语......
  • Tensorflow整理[11]. 变量创建初始化保存加载
    变量:创建、初始化、保存和加载当训练模型时,用变量来存储和更新参数。变量包含张量(Tensor)存放于内存的缓存区。建模时它们需要被明确地初始化,模型训练后它们必须被存储到磁盘。这些变量的值可在之后模型训练和分析是被加载。描述以下两个TensorFlow类。点击以下链接可查看完整的......
  • TensorFlow11.1 循环神经网络RNN01-序列表达方法
    在自然界中除了位置相关的信息(图片)以外,还用一种存在非常广泛的类型,就是时间轴上的数据,比如说序列信号,语音信号,聊天文字。就是有先后顺序。对于下面这个:不如说我们输入有10个句子,每个句子都有4个单词,然后我们怎么把这些句子转化为具体的数值呢。如果一个表示方法能够很好的表示这......
  • TensorFlow10.4 卷积神经网络-ResNet与DenseNet及ResNet实战
    1ResNet我们是实验发现在我们堆叠更多的网络结构的时候,我们并不能又一个很好的结果,就是它网络层次变多了之后他会产生一个多层的loss的堆叠,使得梯度爆炸,或者梯度弥散。然后我们想了一个办法,就是我们比如说设置了一个30层的神经网络,我们在差也不能比22层的差。就是我们设置了一......
  • 在PyInstaller中打包Python代码
    在PyInstaller中打包Python代码在实际开发中,我们经常需要将Python代码打包成可独立运行的可执行文件,以便更方便地分享和部署。PyInstaller是一个常用的Python打包工具,可以将Python脚本打包成单个可执行文件。以下是如何使用PyInstaller打包Python代码的步骤:安装PyInstaller,使用......
  • TensorFlow10.4 卷积神经网络-batchnorm
    我们发现这个sigmoid函数在小于-4或者大于4的时候他的导数趋近于0。然后我们送进去的input的值在[-100,100]之间,这样很容易引起梯度弥散的现象。所以我们一般情况下使用ReLU函数,但是我们有时候又不得不使用sigmoid函数。这个时候我们在送到下一层的时候我们应该先经过Normalizatio......