TensorFlow
灿cc
这个作者很懒,什么都没留下…
展开
-
TensorFlow-step1
import tensorflow as tfnode1 = tf.constant(3.0, tf.float32) #数值不变print(node1)node2 = tf.constant(4.0)print(node2)print(node1,node2)sess = tf.Session()print(sess.run([node1, node2])) #调用run方法显原创 2017-03-29 14:59:14 · 347 阅读 · 0 评论 -
tensorflow-step3-卷积神经网络
卷积神经网络中有权重和偏差。神经元得到输入数据,进行内积运算,再进行激活函数运算。通俗解释计算方法: 参数W:输入尺寸 (n*m),即图像矩阵 参数F:过滤器(卷积),即一次计算的快大小(a*b) 参数P:填充零的数量,即在图像矩阵外围填充0的数量 步长S:即过滤器在在相邻矩阵移动的范围,1就是每次移动一个,2就是移两格通过上述参数即规则可以得到数据体的输出尺寸:输出数据体的空间尺寸为(W-原创 2017-03-30 10:58:47 · 302 阅读 · 0 评论 -
TensorflowOnSpark 介绍与搭建
1.介绍TensorFlowOnSpark 为 Apache Hadoop 和 Apache Spark 集群带来可扩展的深度学习。 通过结合深入学习框架 TensorFlow 和大数据框架 Apache Spark 、Apache Hadoop 的显着特征,TensorFlowOnSpark 能够在 GPU 和 CPU 服务器集群上实现分布式深度学习。2.为了满足什么应用场景为了利用TensorF原创 2017-04-01 11:41:26 · 12451 阅读 · 10 评论 -
TensorBoard tf.summary.merge_all() AttributeError: 'NoneType' object has no attribute 'bucket 错误
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'inputs/x_input' with dtype float [[Node: inputs/x_input = Placeholder[dtype=DT_FLOAT, shape=[], _devic原创 2017-04-05 15:53:25 · 4549 阅读 · 0 评论 -
tensorflow 官方示例
1、手写图像识别(分类) x图像[none,780],w权重[780,10] 输入图像矩阵–采用softmax(多项式逻辑)回归模型–通过交叉熵计算损失2、卷积神经网络 输入图像–卷积conv2d(x, W)(突出特征)-池化max_pool_2x2(x)(减少特征数量)3、手写图像的前馈神经网络流程 输入图像–隐藏层1 nn.relu(w,b)–隐藏层2 nn.relu(n1,b)–s原创 2017-04-13 17:34:22 · 2485 阅读 · 0 评论 -
tensorflow 手写图像验证
主要是为了讨论图像验证,利用最简单的训练代码。官方示例对验证过程只有简单的准确率输出,不直观。 为此,对单一图片进行验证 训练代码:"""Created on Tue Mar 28 11:42:38 2017https://www.tensorflow.org/get_started/mnist/beginners@author: chuc"""from tensorflow.examp原创 2017-04-06 12:59:03 · 2200 阅读 · 3 评论