![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
云游客来
这个作者很懒,什么都没留下…
展开
-
tf.nn,tf.layers, tf.contrib模块
转自:https://blog.csdn.net/u014365862/article/details/77833481我们在使用tensorflow时,会发现tf.nn,tf.layers, tf.contrib模块有很多功能是重复的,尤其是卷积操作,在使用的时候,我们可以根据需要现在不同的模块。但有些时候可以一起混用。 下面是对三个模块的简述: (1)tf.nn :...转载 2018-07-09 10:54:19 · 4890 阅读 · 0 评论 -
tf.nn.in_top_k的用法
转自:https://blog.csdn.net/UESTC_C2_403/article/details/73187915tf.nn.in_top_k组要是用于计算预测的结果和实际结果的是否相等,返回一个bool类型的张量,tf.nn.in_top_k(prediction, target, K):prediction就是表示你预测的结果,大小就是预测样本的数量乘以输出的维度,类型是tf.flo...转载 2018-07-09 10:58:29 · 300 阅读 · 0 评论 -
tensorflow中常见函数(2)
1. tf.random_normal | tf.truncated_normal | tf.random_uniform tf.random_normal(shape,mean=0.0,stddev=1.0,dtype=tf.float32,seed=None,name=None) tf.truncated_normal(shape, mean=0.0, stddev=1.0, dtype=...原创 2018-07-17 11:08:55 · 292 阅读 · 0 评论 -
tensorflow中的常见函数(1)
转自:https://blog.csdn.net/lenbow/article/details/52152766 1、tensorflow的基本运作 为了快速的熟悉TensorFlow编程,下面从一段简单的代码开始: import tensorflow as tf #定义‘符号’变量,也称为占位符 a = tf.placeholder("float") b = tf.placehol...转载 2018-07-17 11:16:24 · 548 阅读 · 0 评论 -
输出TensorFlow保存的checkpoint内变量的几种方法
1. tensorflow官方save and restore部分。 其中 inspect_checkpoint library,可以用来检查checkpoint中的变量。(https://www.tensorflow.org/guide/saved_model?hl=zh-cn)。 # import the inspect_checkpoint library from tensorflo...原创 2018-08-13 15:43:02 · 1758 阅读 · 0 评论