TensorFlow基础笔记(11) conv2D函数】的更多相关文章

#链接:http://www.jianshu.com/p/a70c1d931395 import tensorflow as tf import tensorflow.contrib.slim as slim # tf.nn.conv2d(input, filter, strides, padding, use_cudnn_on_gpu=None, name=None) # 除去name参数用以指定该操作的name,与方法有关的一共五个参数: # # input: # 指需要做卷积的输入图像,它…
# def max_pool2d(inputs, # kernel_size, # stride=2, # padding='VALID', # data_format=DATA_FORMAT_NHWC, # outputs_collections=None, # scope=None): #"VALID"模式下 #输出图像大小 out_height = round((in_height - floor(filter_height / 2) * 2) / strides_height)…
1 官方文档 https://www.tensorflow.org/api_docs/ 2 极客学院中文文档 http://www.tensorfly.cn/tfdoc/api_docs/python/array_ops.html 3 TensorFlow基础笔记(2) minist分类学习…
TensorFlow基础笔记(3) cifar10 分类学习 CIFAR-10 is a common benchmark in machine learning for image recognition. http://www.cs.toronto.edu/~kriz/cifar.html Code in this directory demonstrates how to use TensorFlow to train and evaluate a convolutional neural…
http://blog.csdn.net/huachao1001/article/details/78502910 http://blog.csdn.net/u014432647/article/details/75276718 https://zhuanlan.zhihu.com/p/32887066 #coding:utf-8 #http://blog.csdn.net/zhuiqiuk/article/details/53376283 #http://blog.csdn.net/gan_p…
数据材料 这是一个小型的人脸数据库,一共有40个人,每个人有10张照片作为样本数据.这些图片都是黑白照片,意味着这些图片都只有灰度0-255,没有rgb三通道.于是我们需要对这张大图片切分成一个个的小脸.整张图片大小是1190 × 942,一共有20 × 20张照片.那么每张照片的大小就是(1190 / 20)× (942 / 20)= 57 × 47 (大约,以为每张图片之间存在间距). 问题解决: 10类样本,利用CNN训练可以分类10类数据的神经网络,与手写字符识别类似 olivettif…
1.Keras是一个由Python编写的开源人工神经网络库. 2.深度学习主要应用在三个大的方向,计算机视觉,自然语言处理,强化学习 3.计算机视觉主要有:图片识别,目标检测,语义分割,视频理解(行为检测), 图片生成,艺术风格迁移等等. 4.自然语言处理:机器翻译.聊天机器人 5.强化学习:虚拟游戏.机器人.自动驾驶 6.tensorflow:加速计算,自动梯度, 常用神经网络接口: TensorFlow 除了提供底层的矩阵相乘.相加等数学函数,还内建了常用神经网络运算 函数.常用网络层.网络…
https://blog.csdn.net/chengshuhao1991/article/details/78545723 在计算损失时,通常会用到reduce_sum()函数来进行求和,但是在使用过程中常常会搞不清楚具体是怎样进行计算的,通过查阅资料,逐渐搞清楚了这个函数的用法,下面就来详细解释一下. 在TensorFlow官方文档中有这样的解释:这里写图片描述 其实在reduce_sum()中,是从维度上去考虑的.其中的参数reduction_indices很容易搞蒙圈,上个图加深理解吧.…
参考 http://blog.csdn.net/rockingdingo/article/details/75452711 https://www.cnblogs.com/hrlnw/p/7007648.html https://www.cnblogs.com/hrlnw/p/7383951.html 1.下载tensorflow源码 git clone  https://github.com/tensorflow/tensorflow 2.安装bazel sudo apt-get update…
import numpy as np import tensorflow as tf #build a graph print("build a graph") #生产变量tensor a=tf.constant([[1,2],[3,4]]) b=tf.constant([[1,1],[0,1]]) #获取tensor的数据类型和张量维度 print("a.dtype",a.dtype) print(a.get_shape()) print("type o…