2017-02-10 183 views

回答

0

您可以使用tf.reshape

例如:

import tensorflow as tf 
x = tf.constant(2) 
x_1d = tf.reshape(x, [1]) 
相關問題