用法很簡單,在要擴充套件的維度上加上tf.newaxis就行了。 foo = tf.constant([[1,2,3], [4,5,6], [7,8,9]]) print(foo[tf.newaxis, ...
確定! 回上一頁