我有一个形状数组 (1, 6354944)
array([[ 9.15527344e-05, -6.10351562e-05, 6.10351562e-05, ...,
1.01928711e-02, 7.92236328e-02, -2.69470215e-02]])
并将它们转换为张量切片
stream = tf.data.Dataset.from_tensor_slices(reshaped_data)
但是当我批处理它们时
seqs = stream.batch(1000, drop_remainder=True)
它返回
<BatchDataset shapes: (1000, 6354944), types: tf.float64>
当它的形状应该是
(1000, 6354)