Tensorflow2.0学习(二)
tensorflow
一个面向所有人的开源机器学习框架
项目地址:https://gitcode.com/gh_mirrors/te/tensorflow

·
今天我们接着继续安装环境,前面我们已经安装了一半,有问题的可以去找
接下来,安装tensorflow
有两个版本,一个是cpu,一个是gpu
如果没有显卡,那只能安装cpu版本,有显卡的朋友们,可以安装gpu版本
pip install tensorflow-gpu==2.0.0
conda 安装:
conda search tensorflow
#搜cpu版
conda search tensorflow-gpu
#搜GPU版
#大家可以按需安装 conda install tensorflow-gpu=2.0.0 #各种必备包自动安装,
安装完成以后,如何证明安装好了
打开cmd,输入ipython,进入python命令行模式
import tensorflow as tf
先导入tensorflow,如果不报错,那么在接着输入:tf.test.is_gpu_available()
可以得到我们的显卡信息的一些反馈。可以看到,我这里的显卡是GTX 1060 显存6G,等等一些内容
输入True,说明,tensoflow2.0已经安装完成。
到此,Tensorflow2.0的整个安装过程已经完成。
感谢各位阅读,后面我们继续讲解一下Tensorflow2.0的学习与使用!




一个面向所有人的开源机器学习框架
最近提交(Master分支:12 天前 )
4f64a3d5
Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`.
This prevents us from stepping into nested fusions.
PiperOrigin-RevId: 724311958
12 天前
aa7e952e
Fix a bug in handling negative strides, and add a test case that exposes it.
We can have negative strides that are not just -1, e.g. with a combining
reshape.
PiperOrigin-RevId: 724293790
12 天前
更多推荐
所有评论(0)