阅读背景:

tensorflow中expand_dim()与squeeze()_每日提升一点点

来源:互联网 
a = tf.random.normal([4, 35, 8])
b = tf.expand_dims(a, axis=0)
print(b.shape)
c = tf.expand_dims(a, axis=3)
print(c.shape)
d = tf.expand_dims(a, axis=-1)
print(d.shape)
e = tf.expand_dims(a, axis=-4)
print(e.shape)a = tf.random.normal([4, 35, 8])
b = tf.expand_



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: