
TensorFlow
生如夏花~之绚烂
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
tensorflow实现手写数字识别
写在前面的话 文章总结自北京大学曹健老师的mooc,点击查看课程,通过学习,我自己撸了一遍代码,现在放在下面。并写了一些自己的认识 环境版本 tensorflow==1.3.0 python==3.5.6 操作系统为ubuntu16 手写数字识别的思路 1、首先,我们用tensorflow官方给出的mnist数据集来训练出一个模型 2、其次,我们用tensorflow官方给出的mnist数据集来测...原创 2019-10-31 20:23:09 · 1742 阅读 · 0 评论 -
tensorflow ValueError: Cannot feed value of shape (1, 32) for Tensor 'Placeholder_1:0', which has
源码粘贴 import tensorflow as tf import numpy as np BATCH_SIZE = 8#每次喂入神经网络的数据组数 seed = 23455 #基于seed产生随机数 rng = np.random.RandomState(seed) #随机数返回32行2列的矩阵 表示32组 体积和重量 作为输入数据集 X = rng.rand(32, 2) #从X这个3...原创 2019-10-22 23:56:02 · 2341 阅读 · 1 评论 -
np.newaxis
一篇写的超棒的文章: https://blog.csdn.net/lanchunhui/article/details/49725065转载 2019-07-07 15:49:03 · 146 阅读 · 0 评论 -
tensorflow矩阵的运算
一个实例 import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' #CPU的分配问题 import numpy """ Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly. """ imp...转载 2019-07-08 12:54:03 · 695 阅读 · 0 评论 -
tensorflow更新变量
#初始化cup的分配 import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' """ Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly. """ import tensorflow as...转载 2019-07-08 12:55:13 · 1119 阅读 · 0 评论 -
tf.matmul() 和tf.multiply() 的区别
参考文章:https://blog.csdn.net/qq_29678299/article/details/89367600转载 2019-07-08 13:03:29 · 176 阅读 · 0 评论 -
TensorFlow拟合曲线
这是一个简单的例子 思路 首先,我们这套代码是用来实现一个简单的TensorFlow的例子,具体注释都在上面,我就来说一下大体的思路 初始化cup的资源分配,大家可能会疑问这一步,如果使用gpu的话这一个语句是没有用的,这个是我在我电脑上run代码的时候遇到的加进去了两行 导入相关库 初始化数据 构造变量准备拟合 构造预学习模型 设置损失函数 设置学习率 构造学习对象 初始化一个会话 初始化变量...原创 2019-07-06 16:18:56 · 1100 阅读 · 0 评论 -
win10搭建tensorflow-gpu环境
https://www.cnblogs.com/guoyaohua/p/9265268.html转载 2019-07-06 16:40:20 · 340 阅读 · 0 评论