![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CNN网络
你回到了你的家
这个作者很懒,什么都没留下…
展开
-
tensorflow CNN常用函数汇总
tf.placeholdertf.placeholder( dtype, shape=None, name=None)x=tf.placeholder(tf.float32,[28,28],'x')tf.nn.softmaxtf.nn.softmax( logits, axis=None, name=None, dim=None)整个函数执行如下操作:softm...原创 2019-11-07 19:06:14 · 427 阅读 · 0 评论 -
梯度消失的有效解决方法-batch normalization
batch-normalization用在激活函数前的那一层,作用是调整该层均值和方差(一般是均值为0,方差为1),可以有效减少梯度消失问题。使用tensorflow的实现过程:#模拟一个tensor(CNN的tensor是四维,这里做了简化)#同时初始化时方差设置的很小模拟梯度消失时中间层结点的情况img=tf.Variable(tf.random_normal([4,4],stddev...原创 2019-11-06 13:08:02 · 1112 阅读 · 0 评论