1、tf.app.flags.DEFINE_xxx()就是添加命令行的optional argument(可选参数)
而tf.app.flags.FLAGS可以从对应的命令行参数取出参数
(.app)可以省略
2、tf.Session()
用于运行TensorFlow操作的类.
一个Session对象封装了Operation执行对象的环境,并对Tensor对象进行计算
https://blog.csdn.net/weixin_40458355/article/details/80351641(快速理解tf.Session())
3、Python:logging模块学习笔记:basicConfig配置文件 https://www.cnblogs.com/bjdxy/archive/2013/04/12/3016820.html
4、Python:try except语句
5、Python:
if __name__ == '__main__':语句
https://www.cnblogs.com/yaohong/p/8660209.html
6、tensorflow代码中tf.app.run()什么意思 https://blog.csdn.net/fxjzzyo/article/details/80466321
7、tensorflow中协调器 tf.train.Coordinator 和入队线程启动器 tf.train.start_queue_runners https://blog.csdn.net/weixin_42052460/article/details/80714539
8、from __future__ import print_function 用法 https://blog.csdn.net/xiaotao_1/article/details/79460365
9、tensorflow可视化 (tensorboard) https://www.cnblogs.com/lyc-seu/p/8647792.html(summary的用法)
tf.name_scope
tf.summary.histogram 用来显示直方图信息,一般用来显示训练过程中变量的分布情况
tf.summary.scalar 用来显示标量信息,一般在画loss,accuary时会用到这个函数。
tf.summary.merge_all() 将Summary合并打包,
tf.summary.FileWriter("logs/", sess.graph) 将框架 sess.graph 加载到文件 logs/文件夹 中
然后在终端敲 :,进行查看
writer.add_summary
10、tf.placeholder(占位符) 要从外部传入data, 那就需要用到 tf.placeholder()
https://blog.csdn.net/kdongyi/article/details/82343712
https://blog.csdn.net/zj360202/article/details/70243127
11、feed_dict sess.run() 中的feed_dict:给使用placeholder创建出来的tensor赋值
https://blog.csdn.net/weixin_42052460/article/details/80718435
12、tensorflow的一些基础知识 https://www.jianshu.com/p/ce213e6b2dc0