摘要: max pooling是CNN当中的最大值池化操作,其实用法和卷积很类似有些地方可以从卷积去参考【TensorFlow】tf.nn.conv2d是怎样实现卷积的?tf.nn.max_pool(value, ksize, strides, padding, n... 阅读全文
posted @ 2018-10-01 21:32 luoganttcc 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 链接 阅读全文
posted @ 2018-10-01 20:54 luoganttcc 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 为了取回操作的输出内容, 可以在使用 Session 对象的 run() 调用 执行图时,传入一些 tensor, 这些 tensor 会帮助你取回结果. 在之前的例子里,我们只取回了单个节点 state, 但是你也可以取回多个 tensor:import ... 阅读全文
posted @ 2018-10-01 10:46 luoganttcc 阅读(96) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf# 创建一个常量 op, 产生一个 1x2 矩阵. 这个 op 被作为一个节点# 加到默认图中.## 构造器的返回值代表该常量 op 的返回值.matrix1 = tf.constant([[3., 3.]])#... 阅读全文
posted @ 2018-10-01 10:35 luoganttcc 阅读(98) 评论(0) 推荐(0) 编辑
摘要: CPUwith tf.Session() as sess: ...: with tf.device("/cpu:0"): ...: m1=tf.constant([[3,3]]) ...: m2=tf... 阅读全文
posted @ 2018-10-01 10:17 luoganttcc 阅读(91) 评论(0) 推荐(0) 编辑