tf.shape(tensor)和tensor.shape()的區別a=tf.zeros([4,5,4,6]) print(type(a.shape)) print(a.shape.ndims)#多少個維度.
確定! 回上一頁