>>> a = tf.ones([1,3,1,2]) >>> a >>> tf.squeeze(a) https://www.cnblogs.com/chenhuabin/p/11561633.html