【发布时间】:2018-04-23 03:51:11
【问题描述】:
使用 for 循环和 shape 创建 3D 占位符有什么区别,如下所示。
batch = tf.placeholder(tf.int32, shape=(num_relations, None, 3))
对比
batch_placeholders = [tf.placeholder(tf.int32, shape=(None, 3), name='batch_'+str(i)) for i in range(num_relations)]
【问题讨论】: