![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow实战Google 深度学习框架——代码笔记
大春SSC
这个作者很懒,什么都没留下…
展开
-
TensorFlow实战Google 深度学习框架——代码笔记6 图像识别与卷积神经网络
06-1 卷积层、池化层样例 #1.输入矩阵 import tensorflow as tf import numpy as np M = np.array([ [[1],[-1],[0]], [[-1],[2],[1]], [[0],[2],[-2]] ]) print ("Matrix shape is: ",M.shape) Ma...原创 2019-11-11 09:29:56 · 119 阅读 · 0 评论 -
TensorFlow实战Google 深度学习框架——代码笔记5 MNIST数字识别问题
05-1 MNIST读取数据 # 在Yann LeCun教授的网站中(http://yann.lecun.com/exdb/mnist ) 对MNIST数据集做出了详细的介绍。 # 1. 读取数据集,第一次TensorFlow会自动下载数据集到下面的路径中。 #from tensorflow.examples.tutorials.mnist import input_data from tens...原创 2019-10-29 09:35:31 · 226 阅读 · 0 评论 -
TensorFlow实战Google 深度学习框架——代码笔记4 深层神经网络
04-1 自定义损失函数 import tensorflow as tf from numpy.random import RandomState #1. 定义神经网络的相关参数和变量。 batch_size = 8 x = tf.placeholder(tf.float32, shape=(None, 2), name="x-input") y_ = tf.placeholder(tf.flo...原创 2019-10-28 10:52:48 · 209 阅读 · 0 评论 -
TensorFlow实战Google 深度学习框架——代码笔记3 TensorFlow入门
03-1 图,张量及会话 1. 定义两个不同的图 import tensorflow as tf g1 = tf.Graph() with g1.as_default(): v = tf.get_variable("v", [1], initializer = tf.zeros_initializer()) # 设置初始值为0 g2 = tf.Graph() with g2.as_de...原创 2019-10-25 10:03:15 · 136 阅读 · 0 评论