[Tensorflow]输出Tensor变量的值 代码 c1 = tf.constant([1]) sess = tf.Session() print sess.run(c1) 参考 [1]: http://stackoverflow.com/questions/33633370/how-to-print-the-value-of-a-tensor-object-in-tensorflowet/stackedit