摘要: https://www.tensorflow.org/api_docs/python/tf/nn/static_bidirectional_rnn https://www.w3cschool.cn/tensorflow_python/tensorflow_python-l8ba28vr.html 阅读全文
posted @ 2018-06-27 18:13 Django's blog 阅读(400) 评论(0) 推荐(0)
摘要: 先看代码: #命名空间函数tf.variable_scope()和tf.name_scope()函数区别于使用 import tensorflow as tf with tf.variable_scope("foo"): a = tf.get_variable("bar", [1]) print(a 阅读全文
posted @ 2018-06-27 17:21 Django's blog 阅读(609) 评论(0) 推荐(0)
摘要: tf.concat, tf.stack和tf.unstack的用法 tf.concat相当于numpy中的np.concatenate函数,用于将两个张量在某一个维度(axis)合并起来,例如: 1 2 3 4 tf.stack其作用类似于tf.concat,都是拼接两个张量,而不同之处在于,tf. 阅读全文
posted @ 2018-06-27 11:36 Django's blog 阅读(2228) 评论(0) 推荐(0)