深度学习中遇到的Python问题(三)
2018-03-28 14:45
295 查看
1.tf.train.piecewise_constant
走到一定步长更改学习率。
2.tf.identity
https://blog.csdn.net/hu_guan_jie/article/details/78495297
没看懂。
tf.identity是返回了一个一模一样新的tensor,再control_dependencies的作用块下,需要增加一个新节点到gragh中。
3.tf.summary.scalar
对标量数据汇总和记录
一些高级的API
https://zhuanlan.zhihu.com/p/29073452
走到一定步长更改学习率。
initial_learning_rate = 0.1 * params['batch_size'] / 128 batches_per_epoch = _NUM_IMAGES['train'] / params['batch_size'] global_step = tf.train.get_or_create_global_step() boundaries = [int(batches_per_epoch * epoch) for epoch in [100, 150, 200]] values = [initial_learning_rate * decay for decay in [1, 0.1, 0.01, 0.001]] learning_rate = tf.train.piecewise_constant( tf.cast(global_step, tf.int32), boundaries, values)
2.tf.identity
https://blog.csdn.net/hu_guan_jie/article/details/78495297
没看懂。
tf.identity是返回了一个一模一样新的tensor,再control_dependencies的作用块下,需要增加一个新节点到gragh中。
3.tf.summary.scalar
对标量数据汇总和记录
一些高级的API
https://zhuanlan.zhihu.com/p/29073452
相关文章推荐
- 深度学习中遇到的Python问题(四)
- 深度学习中遇到的Python问题(二)
- 深度学习python库安装经验,Windows下安装Anaconda3 pycharm tensorflow keras theano中遇到的问题
- Python学习中遇到的问题(更新中...)
- ubuntu 15.04 搭建caffe深度学习环境流程及遇到的问题
- import与from xx import遇到的一点问题-python学习
- python学习中,list/tuple/dict格式化遇到的问题
- python学习中遇到问题
- 学习python基础语法中遇到的一些问题
- 学习python遇到的问题
- Python学习遇到的问题
- 深度学习开发环境搭建遇到的问题及解决方案
- Python学习笔记:学习爬虫时遇到的问题TypeError: cannot use a string pattern on a bytes-like object 与解决办法
- 学习python中遇到的问题(1)
- ubuntu 15.04 搭建caffe深度学习环境流程及遇到的问题
- 机器学习实战中遇到的python问题
- Python 学习中遇到的各种问题
- python学习中遇到的问题
- Python学习爬虫中遇到点问题
- 学习python 遇到的第一个问题 :过滤列表