假设网络输入是一个placeholder具有可变批量大小的输入,即:
placeholder
x = tf.placeholder(..., shape=[None, ...])
是否有可能x在喂食后得到它的形状? tf.shape(x)[0]仍然回来None.
x
tf.shape(x)[0]
None
tensorflow
tensorflow ×1