![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
文章平均质量分 58
学习TensorFlow
Hey___Man
努力!奋斗!
展开
-
Ubuntu16 安装GPU版TensorFlow
Ubuntu16 安装GPU版TensorFlow安装GPU驱动ubuntu-drivers devices # 查看支持的nvidia驱动版本sudo apt-get purge nvidia* # 删除当前的nvidia驱动sudo apt-get install nvidia-430 # 安装固定版本的nvidia驱动安装Anaconda从Anaconda官网下载安装即可。conda create --name原创 2021-03-28 23:39:22 · 187 阅读 · 0 评论 -
TensorFlow 2.x中shuffle函数和batch函数调用顺序影响
TensorFlow 2.x中shuffle函数和batch函数调用顺序影响探究TensorFlow 2.x版本中,shuffle函数和batch函数调用顺序对训练过程中随机取样结果的影响。先shuffle,再batch代码如下:import tensorflow as tfx_train = tf.range(0, 10)y_train = tf.range(5, 15)dataset = tf.data.Dataset.from_tensor_slices((x_train, y_tra原创 2021-03-17 11:42:54 · 576 阅读 · 0 评论 -
TensorFlow 2.x 基础总结
TensorFlow 2.x 基础总结TensorFlow 是面向深度学习算法的科学计算库,内部数据保存在张量(Tensor)上,所有的运算操作(Operation,简称OP)都是基于张量对象进行的。数据类型基本数据类型,包括数值类型、字符串类型和布尔类型。数值类型x = tf.constant(1, dtype=tf.float64) # 标量,维度为0的张量x = tf.constant([1,2,3]) # 向量,维度为1的张量x = tf.const原创 2021-03-17 15:15:43 · 215 阅读 · 0 评论 -
Windows系统下TensorFlow-GPU 安装
Windows系统下TensorFlow-GPU 安装首先,GPU要能支持TensorFlow;其次,重要事情说三遍,慎重选择版本!慎重选择版本!慎重选择版本!!!这里的版本,包括Python版本、TensorFlow版本、cuda版本、cuDnn版本。版本之间的关系参考Build from source on Windows,部分截图如下:安装anaconda使用anaconda安装运行环境创建好虚拟环境,安装常见包,包括numpy、tensorflow、matplotlib。安装cuda原创 2021-03-18 20:59:22 · 118 阅读 · 0 评论