对于我们最开始举的例子,代码实现方式如下:
import tensorflow as tf
import numpy as np
a = tf.random.normal([4, 50, 9])
b =...tf.random.normal([6, 50, 9])
c = tf.concat([a, b], axis=0)
# print(c.shape)
# (10, 50, 9)
# 尝试对其他的纬度进行拼接...a = tf.random.normal([5, 50, 6])
b = tf.random.normal([5, 50, 7])
c = tf.concat([a, b], axis=2)
# print...代码的实现方式如下:
a = tf.random.normal([35, 8])
b = tf.random.normal([35, 8])
c = tf.stack([a, b], axis=0)...代码实现方式如下:
x = tf.random.normal([4, 32, 32, 3])
tf.tile(x, [2, 2, 1, 1])
# shape=(8, 64, 32, 3)
?