示例:tf.random.uniform()生成值[0,1],然后我需要一个新的张量,其值为:`0,1,2,3,..48,98,99,...,147,但如果我这样做: indices = tf.constant([], tf.int32)
for index in tf.random.uniform((51,), minval=0, maxval=62, dtype=tf.dtypes.int32):我需要这样做,因为稍后我将使用tf.gather从另一个巨大的张量中收集所有使用indices张量的行。如