我是tensorflow的新手,我正在try 连接两个不同形状的张量.
>>> a
# <tf.Tensor: id=38, shape=(30000, 943, 1), dtype=float64
>>> b
<tf.Tensor: id=2, shape=(30000, 260, 1), dtype=float64
是否可以在轴=0上连接它们以获得形状为(60000,?,1)的张量?
a2 = tf.ragged.constant(a)
b2 = tf.ragged.constant(b)
c = tf.concat([a2, b2], axis=0)
但它没有起作用.