【发布时间】:2018-09-21 23:26:10
【问题描述】:
Tensorflow 如何处理 tf.placeholder 形状的 None ?是否为每次运行创建了具有不同大小输入的新图形?结果在训练/测试中是否有任何性能损失?
x = tf.placeholder(tf.float32, shape=[None, None, None, None])
lten = list of various shapes of rank 4 tensors.
for ten in lten:
feed_dict = {x: ten }
y = sess.run(y, feed_dict= feed_dict)
如您所见,上述 None 的具体值可能有所不同。
【问题讨论】:
标签: python tensorflow