我找到了这样一段代码:
y = tf.strided_slice(data, [0, i * num_steps + 1],
[batch_size, (i + 1) * num_steps + 1])
y.set_shape([batch_size, num_steps])
如Clarification on tf.Tensor.set_shape()所述,set_shape可以使形状信息更具体。但为什么数据的形状信息不具体?张量信息何时不明确?