
TF
Mona-abc
这个作者很懒,什么都没留下…
展开
-
tensorflow 一系列LSTMCell的特点及用法
首先鸣谢这个博客https://www.cnblogs.com/hrlnw/p/10748990.html带来的启发原博客用的tf1.10,我用的1.15,实测无影响。tf.nn.rnn_cell、tf.compat.v1.nn.rnn_cell和tf.contrib.rnn互相等价,rnn的包分为两个部分1. tf.contrib.rnn 2.tf.contrib.cudnn_rnn一、tf.compat.v1.nn.rnn_cell.LSTMCell(num_un...原创 2020-06-11 17:20:07 · 2914 阅读 · 1 评论 -
tensorflow杂记
1.tf.get_variable或tf.Variable默认trainable=True, 默认将变量添加到图形集合tf.GraphKeys.TRAINABLE_VARIABLES中,用于优化器Optimizer类优化的默认变量列表,也就是要训练的变量列表。2.tf.control_dependencies:with tf.control_dependencies([update_op]):...原创 2020-01-17 16:16:34 · 470 阅读 · 0 评论