from tensorflow.python.util import nest x = tf.constant([[1,2],[3,4]]) y = nest.flatten(x) type(y) # list len(y) # 1 y[0] # <tf.Tensor 'Const_4:0' shape=(2, ...
確定! 回上一頁