Python、TensorFlow小知识(未完待续...)

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值