兩種方法都可以獲得變數的shape. tf.shape(x) 其中x可以是tensor, 也可不是tensor,返回是一個tensor. shape=tf.placeholder(tf.float32, shape=[None, ...
確定! 回上一頁