To get the shape as a list of ints, do tensor.get_shape().as_list(). To complete your tf.shape() call, try tensor2 = tf.reshape(tensor, tf.
確定! 回上一頁