![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
zzzz_123123
这个作者很懒,什么都没留下…
展开
-
两种将 (batch_size, seq_length, cell.input_size) => (seq_length, batch_size, cell.input_size)的方法
1。 ##batch_size=30, seq_length=6;cell.input_size=100 Y = np.random.randn(30,6, 100) inputs = tf.split(Y, 6, 1) inputs2 = [tf.squeeze(input_, [1]) for input_ in inputs] ##inputs2.size=(6,30,1...原创 2019-11-17 22:13:36 · 499 阅读 · 0 评论 -
tf local_variables_initializer 和global_variables_initializer的区别
作者:batman 链接:https://www.zhihu.com/question/61834943/answer/828562407 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 首先,global和local variable只是逻辑上的区分!技术上是一样,都是记录在collection里面,也就是你可以自行定义你的变量是global或local,...转载 2019-11-06 22:44:04 · 829 阅读 · 0 评论